Download doc - WikiTeX.org
Transcript
Chapter 3: Example templates
Violin 1
Violin 2
Viola
Cello
39
3.3.2 String quartet parts
The previous example produces a nice string quartet, but what if you needed to print parts?
This template demonstrates how to use the \tag feature to easily split a piece into individual
parts.
You need to split this template into separate files; the filenames are contained in comments
at the beginning of each file. piece.ly contains all the music definitions. The other files –
score.ly, vn1.ly, vn2.ly, vla.ly, and vlc.ly – produce the appropiate part.
%%%%% piece.ly
\version "2.6.0"
global= {
\time 4/4
\key c \major
}
Violinone = \new Voice { \relative c’’{
\set Staff.instrument = "Violin 1 "
c2 d e1
\bar "|." }}
%*********************************
Violintwo = \new Voice { \relative c’’{
\set Staff.instrument = "Violin 2 "
g2 f e1
\bar "|." }}
%*********************************
Viola = \new Voice { \relative c’ {
\set Staff.instrument = "Viola "
\clef alto
e2 d c1
\bar "|." }}
%*********************************
Cello = \new Voice { \relative c’ {
\set Staff.instrument = "Cello
"
\clef bass
c2 b a1