Hi Alard,

I have found that tweaking the 'music-box.ly' example on the Tips & Tricks
page can be pretty useful for similar situations to yours - it's certainly
saved me some time in a few piano pieces where there's a repetitive
accompaniment pattern.

There's probably a more elegant solution than the following, but my
knowledge of scheme is rudimentary to say the least.

If you copy the two scheme functions from music-box.ly , you can use
\applymusic on a macro:

pedalMotif = \transpose c c' { \times 2/3 { c8 c c } c4 c8[ c] c4 }

{
   \clef bass
   \applyMusic #transform {
       \pedalMotif { g, }
       \pedalMotif { c }
   }
}

Regards,
Neil
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to