lilypond-user
[Top][All Lists]
Advanced

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

Re: \book usage


From: Mats Bengtsson
Subject: Re: \book usage
Date: Wed, 02 Nov 2005 10:22:33 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050511

The only reason to use \book{...} in an ordinary .ly file is if you want
several output PDF files from one single .ly file (you get one PDF for
each \book{...} section if you have several of them).
If you have a single \book{...} in a .ly file, you can simply remove it
and get the same result (except that you get rid of the problems you
noticed below).

  /Mats

Gilles wrote:

Hello.

To generate a piece with multiple movements, I'm used to the
following document layout, which compiles fine:

%--- all.ly ---
\version "2.6.0"

\paper {
 raggedbottom = ##f
 raggedlastbottom = ##t
}

\header {
 \include "header.inc.ly"
}

\include "all_allegro.ly"
\include "all_siciliana.ly"
\include "all_bourree.ly"
\include "all_menuet.ly"
\include "all_trio.ly"
%-----

"all_allegro.ly" includes "all_allegro.inc.ly" and contains a \score.
"all_allegro.inc.ly" defines a StaffGroup and includes all the parts
for this movement, e.g. "recorder_allegro.inc.ly" which defines the
a variable ("recorderNotes") containing the note sequence.
[And similarly for the other movements.]

Now, in the documentation for 2.6.3, I read about the \book block;
so, I changed the above into
%--- all.ly ---
\version "2.6.0"

\paper {
 raggedbottom = ##f
 raggedlastbottom = ##t
}

\book {
 \header {
   \include "header.inc.ly"
 }

 \include "all_allegro.ly"
 \include "all_siciliana.ly"
 \include "all_bourree.ly"
 \include "all_menuet.ly"
 \include "all_trio.ly"
}
%-----

but lilypond doesn't like it:

$ lilypond all.ly
GNU LilyPond 2.6.3
Processing `all.ly'
Parsing...
recorder_allegro.inc.ly:3:0: error: syntax error, unexpected STRING

recorderNotes = \relative c'' {
recorder_allegro.inc.ly:135:0: error: syntax error, unexpected '}'

}
recorder_allegro.inc.ly:146:21: error: unknown escaped string: `\recorderNotes'
   \transpose c c {
                    \recorderNotes }
recorder_allegro.inc.ly:146:21: error: syntax error, unexpected STRING
   \transpose c c {
                    \recorderNotes }
all_allegro.ly:5:7: error: errors found, ignoring music expression
\score
      {
all_allegro.ly:16:2: error: errors found, ignoring music expression

 \unfoldRepeats \staves
all.ly:24:0: error: syntax error, unexpected '}'

}
error: failed files: "all.ly"


Could you explain why it doesn't work?


Thanks,
Gilles


_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe
=============================================





reply via email to

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