Simon Albrecht-2 wrote > The problem is integrating this with > \relative (as Gianmaria intended, I believe). At least you’d have to > spell out the first one.
That's true. But if you want to work ONLY in relative mode, a tiny modification to David's solution will work: % ---------------------------------------------------------- \version "2.18.2" pat = #(define-music-function (parser location note) (ly:pitch?) #{ % \transpose c $note % define the pattern here: $note ,,16 $note '''' $note ,, $note % here's the difference... #}) \relative c' { % now works in relative mode... \pat g \pat a \pat b \pat c \pat d \pat e \pat f \pat g \pat a } % ---------------------------------------------------------- Cheers, Klaus -- View this message in context: http://lilypond.1069038.n5.nabble.com/g-g-g-g-tp177750p177777.html Sent from the User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user