Le mercredi 29 mars 2023 à 13:07 +0100, Richard Shann a écrit : > In the following snippet the text is displaced vertically upwards if > the commenting out is removed, i.e. a note appears with more than one > leger line later on the staff. > 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8>< > \version "2.24" > MI = { > <> ^\markup \bold \italic {"text" } > R1*4/4 > R1*4/4 > } > MII = { > R1*4/4 > R1*4/4 > c''1 > %c'''1 > > } > \score { > << > \new Dynamics \MI > \new Staff \MII > >> > } > 8><8><8><8><8><8><8><8><8><8><8><8><8><8><8><8>< > > Is this a bug?
I don't think so. The point of the Dynamics context is to align the dynamics put into it on a common baseline. If there were another `^\markup ...` at the point of that note with a ledger line, the alignment would force the first markup to much higher (just add `s1 s1^"text"` in `MI` to see it). There is a tradeoff between making the line of dynamics look like it's consistently above the staff and not pushing it farther than necessary from the staff. I think LilyPond's behavior here is legitimate, though perhaps the text script should go higher than it does (with the ledgered note).
signature.asc
Description: This is a digitally signed message part