Klaus Blum <benbigno...@gmx.de> writes: > Hi Gianmaria, > > you could start like this: > > % ---------------------------------------------------------- > > \version "2.18.2" > > pat = > #(define-music-function (parser location note) (ly:pitch?) > #{ > \transpose c $note > % define the pattern here: > { c,,16 c'' c c } > #}) > > { > \pat g > \pat a > \pat b > \pat c % etc. > }
Actually, even \version "2.18.2" pat = #(define-music-function (parser location note) (ly:pitch?) #{ % define the pattern here: $note ,,16 $note '' $note $note #}) { \pat g \pat a \pat b \pat c % etc. } will work. Probably not very flexible though. -- David Kastrup _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user