Isolated percent repeats: Difference between revisions
Appearance
Import snippet from LSR |
mNo edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
Isolated percents can also be printed. | Isolated percents can also be printed. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
makePercent = | makePercent = | ||
#(define-music-function (note) (ly:music?) | #(define-music-function (note) (ly:music?) | ||
| Line 14: | Line 14: | ||
[[Category:Repeats]] | [[Category:Repeats]] | ||
[[Category:Scheme]] | |||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[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
}