lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: transposing and changePitch


From: Gilles THIBAULT
Subject: Re: transposing and changePitch
Date: Sun, 31 Jan 2010 17:40:15 +0100

 
> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]