lilypond-user
[Top][All Lists]
Advanced

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

Re: transposing and changePitch


From: Stefan Thomas
Subject: Re: transposing and changePitch
Date: Sun, 31 Jan 2010 21:20:43 +0100

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 <address@hidden>
 
> 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]