bug-lilypond
[Top][All Lists]
Advanced

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

Change Staff problem with rests


From: Brett Duncan
Subject: Change Staff problem with rests
Date: Fri, 12 May 2006 22:51:20 +1000
User-agent: Thunderbird 1.5.0.2 (Macintosh/20060308)

Hi

When I used the \change Staff command in a piano arrangement I'm working on, I found it necessary to force the stem directions to avoid column clashes. No problem. However, I've found that if both parts have a rest at the same moment, I get error messages like this...

warning: can't resolve rest collision: rest direction not set

...and a single rest appears rather than two rests (one above the other).

The following snippet shows the problem:

---------------------------------------
staffPiano = \new PianoStaff {
                \time 4/4
                                <<
                \context Staff = "RH" {
                        \clef treble
                        \relative c' {
                                c'1
                                \stemUp
                                b4 g r4 b
                        }
                }
                \context Staff = "LH" {                       
                        \clef bass
                        \relative c {
                                c'1
                                \change Staff = "RH"
                                \stemDown
                                b4 g r4 b
                        }
                }
        >>
}
---------------------------------------

Brett




reply via email to

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