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)

_______________________________________________
bug-lilypond mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to