Hi Werner,

thanks for the reply. I’ve taken a brief look, but I’ve got to limit myself a bit in how many cans of worms I open… The pseudo-code and user interface I designed earlier are intentionally simplistic for that reason.

Best, Simon

On 09.10.25 12:43, Werner LEMBERG wrote:
I hit the issue of adding accidentals above/below ornaments, and it
seems like there isn’t a widespread easy-to-use solution, is there?
https://gitlab.com/lilypond/lilypond/-/issues/3174 is supposed to
address the issue on the most fundamental level, but until that gets
there, I can well imagine a pragmatic solution just tacking the
accidentals on to the existing stencil.  [...]
Have a look into the file `python/musicxml2ly_definitions.py` and
check the value of the 'accidental-marks' key.  Maybe this is useful
for you.  The macros don't change the pitch of the accidentals while
transposing, though – I guess this could be added, but I don't need it
for `musicxl2ly` so I haven't done anything into this direction.

   
https://gitlab.com/lilypond/lilypond/-/blob/master/python/musicxml2ly_definitions.py?ref_type=heads#L230

You can see the accent macros in action on page 21, bar 10, in this
PDF file:

   https://lilypond.org/doc/v2.25/input/regression/musicxml/collated-files.pdf


     Werner

--
–––––––––––––––––
aktuell:
Henriettenweg 2
72072 Tübingen
Mobil +49 (0)155 66 48 1379


Reply via email to