lilypond-user
[Top][All Lists]
Advanced

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

Re: Error in lily-library.scm with 2.15.14


From: Nick Payne
Subject: Re: Error in lily-library.scm with 2.15.14
Date: Fri, 21 Oct 2011 05:28:57 +1100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0) Gecko/20110923 Thunderbird/7.0

On 20/10/11 21:50, David Kastrup wrote:
Nick Payne<address@hidden>  writes:

I have one score that when when I try to build it with 2.15.14, I get
the following output in the log.

===============================================
Processing `/home/nick/lilypond/chaconne.ly'
Parsing...
Interpreting
music... 
[8][16][24][32][40][48][56][64][72][80][88][96][104][112][120][128][136][144][152][160][168][176][184][192][200][208][216][224][232][240][248][256]
Preprocessing graphical objects...
Interpreting
music... 
/usr/local/lilypond/usr/share/lilypond/current/scm/lily-library.scm:210:5:
In procedure ly:book-process in expression (process-procedure book
paper ...):
/usr/local/lilypond/usr/share/lilypond/current/scm/lily-library.scm:210:5:
Wrong type (expecting exact integer): -1.0
===============================================

I don't get this error with any of the other scores I have built with
2.15.14, and this score built without error on 2.14 and hasn't been
modified since except by running convert-ly against it.

I copied the score across to a Windows machine with 2.14.2 installed,
changed the \version statement back to 2.14.2, and it built without
any error. The machine with 2.15.14 installed is running Ubuntu amd64.
There are no guarantees that working code relying on undefined behavior
will continue to work in later Lilypond versions.  And even defined
behavior may change.

Try boiling down your source file to a level where it still triggers the
error but is small enough to post here.

This creates the error:

\version "2.15.14"

\paper {
    first-page-number = -1
}

\relative c {
    c1
}

Setting first page number to -1 seems to be the problem. In the actual score, I set this, in conjunction with custom headers and footers, to start page numbering with 1 on the third page - first page is the frontispiece, second page is blank.

Nick



reply via email to

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