Re: Creating music with Scheme - can this be done in a simpler way?
From:
Neil Puttock
Subject:
Re: Creating music with Scheme - can this be done in a simpler way?
Date:
Mon, 9 Jul 2007 21:30:10 +0100
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 }