Contemporary glissando (2): 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 24: | Line 24: | ||
[[Category:Contemporary notation]] | [[Category:Contemporary notation]] | ||
[[Category:Expressive marks]] | [[Category:Expressive marks]][[Category:Snippet]] | ||
Revision as of 22:50, 21 November 2025
A contemporary glissando without a final note can be typeset using a hidden note and duration scaling.
\version "2.24"
melody = \relative c'' {
\time 3/4
c4 c4
% Scale Duration of notes with *1/2
c4*1/2-\tweak style #'zigzag \glissando
% Hide the terminating note for the glissando
\single \hideNotes
% Adjust placement of the hidden note if needed
\tweak X-offset #2 \tweak X-extent #'( 0 . 0 )
e,4*1/2 |
c'4 c4 c4
}
\score {
<<
\new Staff { \melody }
>>
}