Valentin Villenave wrote:

I don't understand why nothing happens when you set the property
on-the-fly such as
\relative c''' {
 c2\pp\sustainDown
 \override Staff.SustainPedalLineSpanner #'outside-staff-priority = #250
 \override Voice.DynamicLineSpanner #'outside-staff-priority = #0
 c2\pp\sustainDown
}

Is it because the LineSpanner is already being drawn?

If you compare the following two examples, you see that the dynamics and
pedal marks are vertically aligned in the second example but not in the first, where there's another note inbetween. This is exactly what the xxxLineSpanner objects do. So, in the first example, it "works" to change the settings before
the second xxxLineSpanner starts, whereas in your example above, the
spanner has already been created when you do the setting, so it's not affected.

\relative c' {
 c2\pp\sustainDown c\sustainUp | c1 |
 c,2\pp\sustainDown
}

\relative c' {
 c2\pp\sustainDown c\sustainUp
 c,2\pp\sustainDown
}

  /Mats


_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to