Contemporary glissando (2): Difference between revisions
Appearance
Import snippet from LSR |
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 |
||
| Line 1: | Line 1: | ||
A contemporary glissando without a final note can be typeset using a hidden note and duration scaling. | A contemporary glissando without a final note can be typeset using a hidden note and duration scaling. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
melody = \relative c'' { | melody = \relative c'' { | ||
\time 3/4 | \time 3/4 | ||
Revision as of 18:46, 16 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 }
>>
}