\changePitch, to repeatedly print a given rhythm with different notes. Its syntax is
This will replace notes in
\changePitch \pattern \newnotes
\patternby notes in
\newnotes. If the note-count in
\newnotesis greater, the pattern is copied repeatedly. Rests or skips are allowed, and the function also works for chords. More detailed documentation (in pdf format), and also the most recent "changePitch.ly" can be found here.