Jump to content

Extending a TrillSpanner (2): Difference between revisions

From LilyPond wiki
No edit summary
m New category
Line 20: Line 20:
[[Category:Staff notation]]
[[Category:Staff notation]]
[[Category:Syntax and expressions]]
[[Category:Syntax and expressions]]
[[Category:Tweaks and overrides]][[Category:Snippet]]
[[Category:Tweaks and overrides]]
[[Category:Snippet]]

Revision as of 23:20, 21 November 2025

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
}