On Sun, 13 Oct 2024 17:57:25 +0200 Helge Kruse <helge.kr...@gmx.net> wrote:
> I am experimenting with some fuzzy notation examples. These examples > shall sometimes "violate" the standard rules of good note engraving. > > In one example some annotations are added to the notes, similar as > shown in the PNG. I found a Lilypond code that does it halfway. But > the annotation of the note C should be below the other text snippets. > How can the vertical order be changed? > > \version "2.20.0" > > \score { > \relative c' { > \melisma > \omit Score.BarLine > c4 - \markup{C\super{1} (Mein Freund Molli)} > a' - \markup{A\super{1} (ich)} > s1 > fis4 - \markup{Fis\super{1} (meine Freundin)} > \melismaEnd > } > } > > Regards, Helge > That is controlled by the "outside-staff-priority" property. The default value for text scripts is 450. Higher values are further away from the staff. You can override it for a single markup by using the \tweak command. %%% \score { \relative c' { \melisma \omit Score.BarLine c4 \tweak outside-staff-priority 451 - \markup{C\super{1} (Mein Freund Molli)} a' - \markup{A\super{1} (ich)} s1 fis4 - \markup{Fis\super{1} (meine Freundin)} \melismaEnd } } %%%