> 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