[icon]

GNU LilyPond

-- --

What is LilyPond
Home
Examples
Templates
Download
GNU/Linux binaries
Windows binaries
Source code
Documentation
Tutorial
Manual
Glossary
Index

Support
Mailing lists
Search
WikiWiki

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

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 is the part for the second flute player. Of course, we would make separate parts for all individual instruments if we were preparing the score for an orchestra.



         \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 print one multimeasure rest instead of many consecutive empty bars. LilyPond will do this if Score.skipBars is set to true (##t).
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 (address unknown)

Copyright (c) 1997--2002 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.7.14 (development-branch) by

Buchan Milne <(address unknown)>, Thu Mar 6 21:11:35 2003 CET.