Hello,
I would like my tenuto marking to display above the staff, aligned
vertically with a neighboring prall. But I don’t want my slur’s positioning
to be affected.
[image: image.png]
Is there a better, simpler, more elegant way to get the output of Example E
— in other words, to tell LilyPond to “ignore the presence of the tenuto
script when placing the slur”? Or, instead, to tell LilyPond to “place
expressive marks like tenuto markings above the staff, just like pralls”?
Gabriel
%%% CODE BEGINS
\version "2.24.4"
chant = \relative c' {
\cadenzaOn
\mark \default
% Example A: Slur positioning with no tenuto:
e4 ( f\prall g) e~ e c2 \bar "||"
\mark \default
% Example B: Tenuto added:
e4-- ( f\prall g) e~ e c2 \bar "||"
\mark \default
% Example C: Tenuto shifted up above the staff:
\once \override Script.Y-offset = #2.4
e4-- ( f\prall g) e~ e c2 \bar "||"
\mark \default
% Example D: Tenuto shifted up above the staff a bit more:
\once \override Script.Y-offset = #2.6
e4-- ( f\prall g) e~ e c2 \bar "||"
\mark \default
% Example E: Slur positions adjusted manually:
\once \override Script.Y-offset = #2.6
\once \override Slur.positions = #'(-0.56 . 0)
e4-- ( f\prall g) e~ e c2 \bar "||"
}
\score {
\new Staff
<<
\new Voice = "melody" \chant
>>
\layout {
\context {
\Voice
\remove Stem_engraver
}
\context {
\Staff
\remove Time_signature_engraver
}
}
}
%%% CODE ENDS