Dear Gilles, thanks for Your reply. But I had something different in mind: I wanted to get the output: { c'8 c'' d' d'' e' e'' } %etc. by typing: { \changePitch \test { c' d' e' } } And as far as I see, Your code does not do this.
2010/1/31 Gilles THIBAULT <gilles.thiba...@free.fr> > > > > in the below quoted snippet the change-Pitch-command does > > not work as expected. It doesn't produce the second pitch > > one octave higher! > > Try this (if i have understood what you wanted) > > %%%%%%%%%%%%% > \version "2.12" > > \include "changePitch.ly" > brokenoctaves = #(define-music-function (parser location x) > (ly:music?) > #{ > $x \transpose c c' $x > #}) > > > test = { c8 } > \new Staff { \changePitch \test \brokenoctaves c' } > %%%%%%%%%%%%%% > > NB > All notes if the first parameter of \changePitch ( here : \test ) are > remplaced by the notes of the second parameter. So your function could not > have an effect for the pitch in the first parameter. > > Gilles >
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user