lilypond-user
[Top][All Lists]
Advanced

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

Re: barcheck warning when using Timing.measurePosition in polyphonic mus


From: Nick Payne
Subject: Re: barcheck warning when using Timing.measurePosition in polyphonic music
Date: Mon, 23 Apr 2012 09:53:41 +1000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

On 22/04/12 22:12, Federico Bruni wrote:
Hi,

just a nitpick...

In NR 1.2.3, Upbeats, Known issues and warnings
\set Timing.measurePosition is recommended instead of \partial when the partial measure occurs after the beginning of the piece.

Single voice music compiles fine and without warnings:

\version "2.15.36"

\relative c'' {
  \time 4/4
  \partial 2 g2 |
  g1 |
  \set Timing.measurePosition = #(ly:make-moment -2 4)
  g2 |
  g1 |
}


Polyphonic music compiles fine but I get a barcheck warning:

\version "2.15.36"

\new Staff <<
  \new Voice = "first" \relative c'' {
    \time 4/4
    \partial 2 g2 |
    g1 |
    \set Timing.measurePosition = #(ly:make-moment -2 4)
    g2 |
    g1 |
  }

  \new Voice= "second" \relative c' {
    \time 4/4
    \partial 2
    c2 |
    c1 |
    \set Timing.measurePosition = #(ly:make-moment -2 4)
    c2 |
    c1 |
  }
>>

The warning is:
warning: barcheck failed at: -1/2

If you replace

\set Timing.measurePosition = #(ly:make-moment -2 4)

with

\set Score.measureLength = #(ly:make-moment 2 4)

you don't get a barcheck error.

Nick



reply via email to

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