Chris,
On Mon, Jul 13, 2015 at 4:24 PM, Chris Yate [via Lilypond] <
[email protected]> wrote:
> Hi,
>
> I'm not sure what I'm meant to do to fix this... Have already used
> explicit positioning for the rests but that doesn't stop the warnings.
>
> Granted they're *only* warnings but I always prefer clean compilation.
>
> Thanks in advance!
>
> Chris
>
>
> ---
>
> \language "english"
>
> \new Score
> {
> \relative c''
> {
> <<
> \new CueVoice {
> \stemDown
> \slurDown
> f,2_\markup{"Tbn 2"}\mp ( d
> f2 g4) f\rest
> }
> \\
> \new CueVoice {
> \stemUp
> \slurUp
> af2^\markup{"Tbn 1"} ( bf4 c8 d
> b2 c4) e\rest
>
> }
> >>
> }
> }
>
> Starting lilypond-windows.exe 2.18.2 [Untitled]...
>
> Processing `c:/users/chris/appdata/local/temp/frescobaldi-ywvkwd/tmpivikeh/
> document.ly'
>
> Parsing...
>
>
> c:/users/chris/appdata/local/temp/frescobaldi-ywvkwd/tmpivikeh/document.ly:1
> <http://0>: warning: no \version statement found, please add
>
> \version "2.18.2"
>
> for future compatibility
>
> Interpreting music...
>
> Preprocessing graphical objects...
>
> Finding the ideal number of pages...
>
> Fitting music on 1 page...
>
> Drawing systems...
>
>
> c:/users/chris/appdata/local/temp/frescobaldi-ywvkwd/tmpivikeh/document.ly:13:14
> <http://1>: warning: cannot resolve rest collision: rest direction not set
>
> f2 g4)
>
> f\rest
>
>
> c:/users/chris/appdata/local/temp/frescobaldi-ywvkwd/tmpivikeh/document.ly:13:14
> <http://2>: warning: cannot resolve rest collision: rest direction not set
>
> f2 g4)
>
> f\rest
>
> Layout output to `document.ps'...
>
This is because each CueVoice is being engraved at the same level (i.e., as
\oneVoice) even though you are using the polyphony shorthand {...}\\{...}.
Not sure if this is intended or a bug. In either case, here's a solution
where the directions (including for the rests at the end) are handled
automatically using \voiceOne and \voiceTwo (I rearranged the order of the
two CueVoices for clarity and added a necessary \new Staff):
\language "english"
\score {
\new Staff {
\relative c'' <<
\new CueVoice {
\voiceOne
af2-\markup{"Tbn 1"} ( bf4 c8 d |
b2 c4) r |
}
\new CueVoice {
\voiceTwo
f,2-\markup{"Tbn 2"}\mp ( d |
f2 g4) r |
}
>>
}
}
HTH,
Abraham
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Cannot-resolve-rest-collision-rest-direction-not-set-tp178668p178671.html
Sent from the User mailing list archive at Nabble.com._______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user