lilypond-devel
[Top][All Lists]
Advanced

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

Re: opening bar check crashes the compiler


From: Eluze
Subject: Re: opening bar check crashes the compiler
Date: Sun, 24 Feb 2013 15:13:39 -0800 (PST)

Thomas Morley wrote
> 2013/2/24 David Kastrup <

> dak@

> >:
>> Thomas Morley <

> thomasmorley65@

> > writes:
>>
>>> %%%%
>>>
>>> Bar and bar number checks
>>>
>>> Bar checks help detect errors in the entered durations. A bar check
>>> may be entered using the bar symbol, |, at any place where a bar line
>>> is expected to fall. If bar check lines are encountered at other
>>> places, a list of warnings is printed in the log file, showing the
>>> line numbers and lines in which the bar checks failed. In the next
>>> example, the second bar check will signal an error.
>>>
>>>     \time 3/4 c2 e4 | g2 |
>>>
>>> %%%
>>>
>>> Shows that the bar-check should be written _after_ the section which
>>> should be checked.
>>>
>>> So, writing
>>> | d
>>> is a user-error.
>>
>> I read "at any place where a bar line is expected to fall", and I count
>> the start as being such a place.
>>
>>> Well, perhaps this error shouldn't result in a crash
>>
>> And there is "most definitely" for this.  One problem is that being at
>> the start of the music does not tell us whether there is a \partial
>> command following right behind, so there is insufficient information for
>> a really reliable bar check at the starting point I think.
>>
>> I might be mistaken, but a crash is never an appropriate reaction in any
>> case for user input as straightforward as that.
>>
>> The severity of the penalty does not match the offense.
> 
> Some more investigation:
> 
> The problem seems to be related to \midi

I can confirm this happens only with midi.

I've tested with 2.17.13 and it seems to me that not initializing the
context explicitly is followed by a crash:

mus={  | d' } 
\score {
  \mus
  \midi { } 
}

writing

\new Staff \mus
  or 
{ <>  \mus }

runs correctly

Eluze



--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/opening-bar-check-crashes-the-compiler-tp141399p141432.html
Sent from the Dev mailing list archive at Nabble.com.



reply via email to

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