Next: , Previous: File structure (introduction), Up: Input files


10.1.2 Multiple scores in a book

A document may contain multiple pieces of music and texts. Examples of these are an etude book, or an orchestral part with multiple movements. Each movement is entered with a \score block,

\score {
  ..music..
}

and texts are entered with a \markup block,

\markup {
  ..text..
}

The movements and texts are combined together in a \book block, like

\book {
  \score {
    ..
  }
  \markup {
    ..
  }
  \score {
    ..
  }
}

The header for each piece of music can be put inside the \score block. The piece name from the header will be printed before each movement. The title for the entire book can be put inside the \book, but if it is not present, the \header which is at the top of the file is inserted.

\book {
  \header {
    title = "Eight miniatures"
    composer = "Igor Stravinsky"
  }
  \score {
    ...
    \header { piece = "Romanze" }
  }
  \markup {
     ..text of second verse..
  }
  \markup {
     ..text of third verse..
  }
  \score {
    ...
    \header { piece = "Menuetto" }
  }
}

This page is for LilyPond-2.10.5 (stable-branch).

Report errors to http://post.gmane.org/post.php?group=gmane.comp.gnu.lilypond.bugs.