bug-lilypond
[Top][All Lists]
Advanced

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

Polyphony confuses \change


From: Jean Abou Samra
Subject: Polyphony confuses \change
Date: Tue, 3 Mar 2020 11:10:09 +0100 (CET)

   Hi again,

   In this example, LilyPond complains and \change has no effect. However,
   if you move the \change between the second and the third measure (i.e.
   one line lower), then all is fine. So, it seems that \change does not
   work right after the end of simultaneous voices.

   \version "2.21.0"

   <<
     \new Staff = "up" {
       << { c'' } \\ { c' } >>
       \change Staff = "down"
       c'4
       c'4
     }
     \new Staff = "down" {
       s4*3
     }
   >>

   The log contains:

   warning: Change_iterator::process (): Staff = `up':
   -:8:5: warning: cannot change `Staff' to `down': not changing to same
   context type: Staff
   \change Staff = "down"

   A workaround is to add a \grace s8  in all voices, between the end of
   simultaneous voices and the \change invocation.

   Regards,

   Jean Abou Samra


reply via email to

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