lilypond-user
[Top][All Lists]
Advanced

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

Re: Cannot resolve rest collision: rest direction not set


From: tisimst
Subject: Re: Cannot resolve rest collision: rest direction not set
Date: Mon, 13 Jul 2015 17:25:39 -0700 (MST)

Chris,

On Mon, Jul 13, 2015 at 4:24 PM, Chris Yate [via Lilypond] <[hidden email]> 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: 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: 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: 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: Re: Cannot resolve rest collision: rest direction not set
Sent from the User mailing list archive at Nabble.com.

reply via email to

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