Extending a TrillSpanner (2)

Revision as of 18:57, 16 November 2025 by Jean Abou Samra (talk | contribs) (Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series)

This snippet shows how to get a trill span over the last note of a measure.

\version "2.24"

% LSR: http://lsr.di.unimi.it/LSR/Item?id=959
%=> http://lilypond.1069038.n5.nabble.com/Trill-Span-tc168639.html
% see also : http://lsr.di.unimi.it/LSR/Item?id=912

\relative c' {
  \time 4/4
  \clef treble
  \key c \major
  \override TrillSpanner.to-barline = ##t
  c2\startTrillSpan d4 e4 |
  f1
  \stopTrillSpan  |
  \revert TrillSpanner.to-barline
}