lilypond-user
[Top][All Lists]
Advanced

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

tranpose relative to the last pitch


From: Tom van der Hoeven
Subject: tranpose relative to the last pitch
Date: Thu, 12 Dec 2013 22:26:12 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Suppose I have
music = \relative c'{c b a g     f e e f     g a b c}
my instrument is limited so it cannot play the pitch f end below
I have to raise  f e e f by a terts of an octave
Is there a function shift or can it be made such that

music = \relative c'{c b a g     \terts{f e e f}     g a b c}

is equivalent to

\relative c'{c b a g     a g g a     g a b c}

if you use :
terts =  #(define-music-function (parser location ploep) (ly:music?)
#{ \transpose c e \relative c' $ploep #})

the c' after \relative should actualy be the last-pitch (in the example g)
Help will be appreciated

Tom



reply via email to

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