Controlling spanner end points

The to-barline property of the spanner-interface, usually defaulting to #t, causes hairpins and other spanners that are terminated on the first note of a measure to end instead on the immediately preceding bar line. If set to #f, the spanner extends beyond the bar line and end on the note itself:

\relative {
  a' \< a a a a \! a a a \break
  \override Hairpin.to-barline = ##f
  a \< a a a a \! a a a
}

[image of music]

This property is not effective for all spanners. For example, setting it to #t has no effect on slurs or phrasing slurs or on other spanners for which terminating on the bar line would not be meaningful.


LilyPond Notation Reference v2.25.21 (development-branch).