bug-lilypond
[Top][All Lists]
Advanced

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

Re: Chord repetition shortcut doesn't support relative mode in Scheme fu


From: Colin Campbell
Subject: Re: Chord repetition shortcut doesn't support relative mode in Scheme functions
Date: Sun, 03 Apr 2011 20:06:44 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8

On 11-04-02 03:09 PM, Valentin Villenave wrote:
Greetings everybody, hi Nicolas,

I'm not sure anybody else has encountered this before (couldn't find
any such reports in the tracker or in bug- archives). Have a look at
the following example, where all four fragments should look the same
(hint: they do not).

In the first two, Lily behaves as expected. In the third and fourth,
however, the Scheme function used to generate the polyphony confuses
the chord-repetition mechanism. See attached output.


\version "2.14.0" %% or so :-)

polyTestOne =
#(define-music-function (parser location lower upper)
   (ly:music? ly:music?)
   #{<<   { \voiceTwo $lower } \\
   { \voiceOne $upper }>>  #})

polyTestTwo =
#(define-music-function (parser location lower upper)
   (ly:music? ly:music?)
   #{<<   { \voiceOne $upper } \\
   { \voiceTwo $lower }>>  #})

\relative c' {
   <d e>2 q
   <<
     {\voiceOne<d e>4<d e>  q q} \\
     {\voiceTwo g,2 r}
   >>
}

\relative c' {
   <d e>2 q
   <<
     {\voiceTwo g, r} \\
     {\voiceOne<d' e>4<d e>  q q}
   >>
}

\relative c' {
   <d e>2 q
   \polyTestOne {g, r} {<d' e>4<d e>   q q}
}

\relative c' {
   <d e>2 q
   \polyTestTwo {g, r} {<d' e>4<d e>   q q}
}

%%%%

Cheers,
Valentin.


http://code.google.com/p/lilypond/issues/detail?id=1110
Is this a relative, or even an instance, of issue 1110?

Colin

--
The test of our progress is not whether we add more to the abundance
of those who have much, it is whether we provide enough for those who
have too little.
-Franklin D. Roosevelt, 32nd US President (1882-1945)



reply via email to

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