]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/jazz-combo-template.ly
Release: update news.
[lilypond.git] / Documentation / snippets / new / jazz-combo-template.ly
1 \version "2.17.20"
2
3 \header {
4   lsrtags = "keyboards, percussion, fretted-strings, template, real-music"
5
6   texidoc = "
7 This is quite an advanced template, for a jazz ensemble. Note that all
8 instruments are notated in @code{\\key c \\major}. This refers to the
9 key in concert pitch; the key will be automatically transposed if the
10 music is within a @code{\\transpose} section.
11
12 "
13   doctitle = "Jazz combo template"
14 }
15
16 \header {
17   title = "Song"
18   subtitle = "(tune)"
19   composer = "Me"
20   meter = "moderato"
21   piece = "Swing"
22   tagline = \markup {
23     \column {
24       "LilyPond example file by Amelie Zapf,"
25       "Berlin 07/07/2003"
26     }
27   }
28 }
29
30 %#(set-global-staff-size 16)
31 \include "english.ly"
32
33 %%%%%%%%%%%% Some macros %%%%%%%%%%%%%%%%%%%
34
35 sl = {
36   \override NoteHead.style = #'slash
37   \override Stem.transparent = ##t
38 }
39 nsl = {
40   \revert NoteHead.style
41   \revert Stem.transparent
42 }
43 crOn = \override NoteHead.style = #'cross
44 crOff = \revert NoteHead.style
45
46 %% insert chord name style stuff here.
47
48 jazzChords = { }
49
50 %%%%%%%%%%%% Keys'n'thangs %%%%%%%%%%%%%%%%%
51
52 global = { \time 4/4 }
53
54 Key = { \key c \major }
55
56 % ############ Horns ############
57
58 % ------ Trumpet ------
59 trpt = \transpose c d \relative c'' {
60   \Key
61   c1 | c | c |
62 }
63 trpHarmony = \transpose c' d {
64   \jazzChords
65 }
66 trumpet = {
67   \global
68   \set Staff.instrumentName = #"Trumpet"
69   \clef treble
70   <<
71     \trpt
72   >>
73 }
74
75 % ------ Alto Saxophone ------
76 alto = \transpose c a \relative c' {
77   \Key
78   c1 | c | c |
79 }
80 altoHarmony = \transpose c' a {
81   \jazzChords
82 }
83 altoSax = {
84   \global
85   \set Staff.instrumentName = #"Alto Sax"
86   \clef treble
87   <<
88     \alto
89   >>
90 }
91
92 % ------ Baritone Saxophone ------
93 bari = \transpose c a' \relative c {
94   \Key
95   c1
96   c1
97   \sl
98   d4^"Solo" d d d
99   \nsl
100 }
101 bariHarmony = \transpose c' a \chordmode {
102   \jazzChords s1 s d2:maj e:m7
103 }
104 bariSax = {
105   \global
106   \set Staff.instrumentName = #"Bari Sax"
107   \clef treble
108   <<
109     \bari
110   >>
111 }
112
113 % ------ Trombone ------
114 tbone = \relative c {
115   \Key
116   c1 | c | c
117 }
118 tboneHarmony = \chordmode {
119   \jazzChords
120 }
121 trombone = {
122   \global
123   \set Staff.instrumentName = #"Trombone"
124   \clef bass
125   <<
126     \tbone
127   >>
128 }
129
130 % ############ Rhythm Section #############
131
132 % ------ Guitar ------
133 gtr = \relative c'' {
134   \Key
135   c1
136   \sl
137   b4 b b b
138   \nsl
139   c1
140 }
141 gtrHarmony = \chordmode {
142   \jazzChords
143   s1 c2:min7+ d2:maj9
144 }
145 guitar = {
146   \global
147   \set Staff.instrumentName = #"Guitar"
148   \clef treble
149   <<
150     \gtr
151   >>
152 }
153
154 %% ------ Piano ------
155 rhUpper = \relative c'' {
156   \voiceOne
157   \Key
158   c1 | c | c
159 }
160 rhLower = \relative c' {
161   \voiceTwo
162   \Key
163   e1 | e | e
164 }
165
166 lhUpper = \relative c' {
167   \voiceOne
168   \Key
169   g1 | g | g
170 }
171 lhLower = \relative c {
172   \voiceTwo
173   \Key
174   c1 | c | c
175 }
176
177 PianoRH = {
178   \clef treble
179   \global
180   \set Staff.midiInstrument = #"acoustic grand"
181   <<
182     \new Voice = "one" \rhUpper
183     \new Voice = "two" \rhLower
184   >>
185 }
186 PianoLH = {
187   \clef bass
188   \global
189   \set Staff.midiInstrument = #"acoustic grand"
190   <<
191     \new Voice = "one" \lhUpper
192     \new Voice = "two" \lhLower
193   >>
194 }
195
196 piano = {
197   <<
198     \set PianoStaff.instrumentName = #"Piano"
199     \new Staff = "upper" \PianoRH
200     \new Staff = "lower" \PianoLH
201   >>
202 }
203
204 % ------ Bass Guitar ------
205 Bass = \relative c {
206   \Key
207   c1 | c | c
208 }
209 bass = {
210   \global
211   \set Staff.instrumentName = #"Bass"
212   \clef bass
213   <<
214     \Bass
215   >>
216 }
217
218 % ------ Drums ------
219 up = \drummode {
220   \voiceOne
221   hh4 <hh sn> hh <hh sn>
222   hh4 <hh sn> hh <hh sn>
223   hh4 <hh sn> hh <hh sn>
224 }
225 down = \drummode {
226   \voiceTwo
227   bd4 s bd s
228   bd4 s bd s
229   bd4 s bd s
230 }
231
232 drumContents = {
233   \global
234   <<
235     \set DrumStaff.instrumentName = #"Drums"
236     \new DrumVoice \up
237     \new DrumVoice \down
238   >>
239 }
240
241 %%%%%%%%% It All Goes Together Here %%%%%%%%%%%%%%%%%%%%%%
242
243 \score {
244   <<
245     \new StaffGroup = "horns" <<
246       \new Staff = "trumpet" \trumpet
247       \new Staff = "altosax" \altoSax
248       \new ChordNames = "barichords" \bariHarmony
249       \new Staff = "barisax" \bariSax
250       \new Staff = "trombone" \trombone
251     >>
252
253     \new StaffGroup = "rhythm" <<
254       \new ChordNames = "chords" \gtrHarmony
255       \new Staff = "guitar" \guitar
256       \new PianoStaff = "piano" \piano
257       \new Staff = "bass" \bass
258       \new DrumStaff \drumContents
259     >>
260   >>
261   \layout {
262     \context { \Staff \RemoveEmptyStaves }
263     \context {
264       \Score
265       \override BarNumber.padding = #3
266       \override RehearsalMark.padding = #2
267       skipBars = ##t
268     }
269   }
270   \midi { }
271 }
272