Extending a trill spanner: Difference between revisions
Appearance
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series |
No edit summary |
||
| Line 21: | Line 21: | ||
[[Category:Syntax and expressions]] | [[Category:Syntax and expressions]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]][[Category:Snippet]] | ||
Revision as of 22:52, 21 November 2025
For TrillSpanner, the minimum-length property becomes effective only if the set-spacing-rods procedure is called explicitly.
To do this, the springs-and-rods property should be set to ly:spanner::set-spacing-rods.
\version "2.24"
\relative c' {
\key c\minor
\time 2/4
c16( as') c,-. des-.
\once\override TrillSpanner.minimum-length = #15
\once\override TrillSpanner.springs-and-rods = #ly:spanner::set-spacing-rods
\afterGrace es4
\startTrillSpan { d16[( \stopTrillSpan es)] }
c( c' g es c g' es d
\hideNotes
c8)
}