Extending glissandi across repeats: Difference between revisions
m New category Tags: Mobile edit Mobile web edit |
mNo edit summary |
||
| Line 1: | Line 1: | ||
A glissando | A glissando that extends into several <code>\alternative</code> blocks can be simulated by adding a hidden grace note with a glissando at the start of each <code>\alternative</code> block. The grace note should be at the same pitch as the note which starts the initial glissando. This is implemented here with a music function that takes the pitch of the grace note as its argument. | ||
Note that in polyphonic music the grace note must be matched with corresponding grace notes in all other voices. | Note that in polyphonic music the grace note must be matched with corresponding grace notes in all other voices. | ||
<lilypond version="2.24" | <lilypond version="2.24"> | ||
repeatGliss = #(define-music-function (grace) | repeatGliss = #(define-music-function (grace) | ||
(ly:pitch?) | (ly:pitch?) | ||
| Line 48: | Line 48: | ||
>> | >> | ||
} | } | ||
</lilypond> | </lilypond> | ||
[[Category:Staff notation]] | [[Category:Staff notation]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Included in the official documentation]] | |||
[[Category:Snippet]] | [[Category:Snippet]] | ||