Lilypond function; add rhythm to note
1 answer
The documents LilyPond you can find this example:
rhythm =
#(define-music-function (parser location p) (ly:pitch?)
"Make the rhythm in Mars (the Planets) at the given pitch"
#{ \tuplet 3/2 { $p 8 $p $p } $p 4 $p $p 8 $p $p 4 #})
\new Staff {
\time 5/4
\rhythm c'
\rhythm c''
\rhythm g
}
Hope you can adapt to what you want! Replace the rhythm of Mars with yours. Note that $p
space is required between the variable and the duration.
+4
source to share