[icon]

GNU LilyPond

Welcome to the home of the GNU Music Typesetter

What is LilyPond
General information
Simple examples
Complex examples
Download
GNU/Linux binaries
Windows
Source code
Documentation
Tutorial
Manual
Glossary
other ...

Support
Mailing lists
Search
WikiWiki
FAQs

External sites
lilypond.org/development
lilypond.org/stable
ftp.lilypond.org
Mutopia
Other music online

Node:Extracting an individual part, Previous:The full score, Up:An orchestral score



Extracting an individual part

The third file, os-flute-2.ly also reads the definitions of the first (os-music.ly), and defines the \score block for the second flute part.

\include "os-music.ly"
\include "paper16.ly"

\score {
  \context Staff <
    \property Score.skipBars = ##t
    \property Staff.midiInstrument = #"flute"
    \global
    \Key
    \flautoII
  >
  \header {
    instrument = "Flauto II"
  }
  \paper {
    linewidth = 80 * \staffspace
    textheight = 200 * \staffspace
  }
  \midi {
    \tempo 4 = 75
  }
}
Zo, goed lieverd?

How's, this babe?
Flauto II
Opus 1.
LAID BACK

[picture of music]

Because we separated the music definitions from the \score instantiations, we can easily define a second score with the music of the second flute. This then is the part for the second flute player. Of course, we make separate parts for all individual instruments.

***


    \flautoII
In this individual part the second flute has a whole staff for itself, so we don't want to force stem or tie directions.

***


  \header {
    instrument = "Flauto II"
  }
The \header definitions were also read from os-music.ly, but we need to set the instrument for this particular score.

***


    \property Score.skipBars = ##t
In the conductor's full score, all bars with rests are printed, but for the individual parts, we want to contract pieces of consecutive empty bars. LilyPond will do this if Score's skipBars property to true.
Go back to index of LilyPond.

Please send GNU LilyPond questions and comments to lilypond-user@gnu.org.

Please send comments on these web pages to lilypond@packages.debian.org

Copyright (c) 1997--2001 Han-Wen Nienhuys and Jan Nieuwenhuizen.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


This page was built from LilyPond-1.4.12 (stable-branch) by

Anthony Fok <lilypond@packages.debian.org>, Tue Mar 12 01:35:39 2002 HKT.