Hi Harm,
Currently, since Harm added the feature of having custodes with ledger lines,
the Custos creation is split up between C++ and Scheme: The C++ machinery
creates a stencil, a Scheme function then takes this stencil and adds ledger
lines. I don't find this particularly elegant; probably the custos::print
function should be ported to Scheme anyway. This is also feasible, but I don't
understand part of the internals workings well enough (to wit, what's the
proper Scheme equivalent to Staff_symbol_referencer::get_rounded_position?) to
do this right now.
Yep, agreed in all points!.
I was not able to port the entire stencil-procedure to scheme, too,
thus that wrapper around the C++-stencil.
See https://gitlab.com/lilypond/lilypond/-/merge_requests/2875
Lukas