Isolated percent repeats: Difference between revisions
Appearance
m New category |
mNo edit summary |
||
| Line 14: | Line 14: | ||
[[Category:Repeats]] | [[Category:Repeats]] | ||
[[Category:Scheme]] | |||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | [[Category:Snippet]] | ||
Latest revision as of 09:30, 4 December 2025
Isolated percents can also be printed.
\version "2.24"
makePercent =
#(define-music-function (note) (ly:music?)
"Make a percent repeat the same length as NOTE."
(make-music 'PercentEvent
'length (ly:music-length note)))
\relative c'' {
\makePercent s1
}