On 2026-07-25 01:47, Werner LEMBERG wrote:
first repeat. As can be seen, the slur in the prima-volta box is
'anchored' to the bar line at its right end. How could this be done
in LilyPond? A work-around is to have another voice so that I can
Something like Hairpin.to-barline?
(to-barline ,boolean? "If true, the spanner will stop at the bar
line just before it would otherwise stop.")
I guess you would want a slur always to expand, not just to shift "before."
Even so, slurs don't currently respect it.
```
\version "2.26.0"
<<
{
\override Voice.Hairpin.color = #red
\override Voice.Hairpin.to-barline = ##t
\override Voice.PhrasingSlur.color = #red
\override Voice.PhrasingSlur.to-barline = ##t
\override Voice.Slur.color = #red
\override Voice.Slur.to-barline = ##t
c''4(\(\< 4 4 4 | \grace \hide r8)\)\!
}
\\
{
\override Voice.Hairpin.color = #blue
\override Voice.Hairpin.to-barline = ##f
\override Voice.PhrasingSlur.color = #blue
\override Voice.PhrasingSlur.to-barline = ##f
\override Voice.Slur.color = #blue
\override Voice.Slur.to-barline = ##f
a'4(\(\< 4 4 4 | \grace \hide r8)\)\!
}
>>
```
--
Dan