]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/jazz-combo-template.ly
de6385895cb1e3dd45d5160e494bc1a5d648f952
[lilypond.git] / Documentation / snippets / new / jazz-combo-template.ly
1 \version "2.15.15"
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   \override Flag #'transparent = ##t
39 }
40 nsl = {
41   \revert NoteHead #'style
42   \revert Stem #'transparent
43   \revert Flag #'transparent
44 }
45 crOn = \override NoteHead #'style = #'cross
46 crOff = \revert NoteHead #'style
47
48 %% insert chord name style stuff here.
49
50 jazzChords = { }
51
52 %%%%%%%%%%%% Keys'n'thangs %%%%%%%%%%%%%%%%%
53
54 global = { \time 4/4 }
55
56 Key = { \key c \major }
57
58 % ############ Horns ############
59
60 % ------ Trumpet ------
61 trpt = \transpose c d \relative c'' {
62   \Key
63   c1 | c | c |
64 }
65 trpHarmony = \transpose c' d {
66   \jazzChords
67 }
68 trumpet = {
69   \global
70   \set Staff.instrumentName = #"Trumpet"
71   \clef treble
72   <<
73     \trpt
74   >>
75 }
76
77 % ------ Alto Saxophone ------
78 alto = \transpose c a \relative c' {
79   \Key
80   c1 | c | c |
81 }
82 altoHarmony = \transpose c' a {
83   \jazzChords
84 }
85 altoSax = {
86   \global
87   \set Staff.instrumentName = #"Alto Sax"
88   \clef treble
89   <<
90     \alto
91   >>
92 }
93
94 % ------ Baritone Saxophone ------
95 bari = \transpose c a' \relative c {
96   \Key
97   c1
98   c1
99   \sl
100   d4^"Solo" d d d
101   \nsl
102 }
103 bariHarmony = \transpose c' a \chordmode {
104   \jazzChords s1 s d2:maj e:m7
105 }
106 bariSax = {
107   \global
108   \set Staff.instrumentName = #"Bari Sax"
109   \clef treble
110   <<
111     \bari
112   >>
113 }
114
115 % ------ Trombone ------
116 tbone = \relative c {
117   \Key
118   c1 | c | c
119 }
120 tboneHarmony = \chordmode {
121   \jazzChords
122 }
123 trombone = {
124   \global
125   \set Staff.instrumentName = #"Trombone"
126   \clef bass
127   <<
128     \tbone
129   >>
130 }
131
132 % ############ Rhythm Section #############
133
134 % ------ Guitar ------
135 gtr = \relative c'' {
136   \Key
137   c1
138   \sl
139   b4 b b b
140   \nsl
141   c1
142 }
143 gtrHarmony = \chordmode {
144   \jazzChords
145   s1 c2:min7+ d2:maj9
146 }
147 guitar = {
148   \global
149   \set Staff.instrumentName = #"Guitar"
150   \clef treble
151   <<
152     \gtr
153   >>
154 }
155
156 %% ------ Piano ------
157 rhUpper = \relative c'' {
158   \voiceOne
159   \Key
160   c1 | c | c
161 }
162 rhLower = \relative c' {
163   \voiceTwo
164   \Key
165   e1 | e | e
166 }
167
168 lhUpper = \relative c' {
169   \voiceOne
170   \Key
171   g1 | g | g
172 }
173 lhLower = \relative c {
174   \voiceTwo
175   \Key
176   c1 | c | c
177 }
178
179 PianoRH = {
180   \clef treble
181   \global
182   \set Staff.midiInstrument = #"acoustic grand"
183   <<
184     \new Voice = "one" \rhUpper
185     \new Voice = "two" \rhLower
186   >>
187 }
188 PianoLH = {
189   \clef bass
190   \global
191   \set Staff.midiInstrument = #"acoustic grand"
192   <<
193     \new Voice = "one" \lhUpper
194     \new Voice = "two" \lhLower
195   >>
196 }
197
198 piano = {
199   <<
200     \set PianoStaff.instrumentName = #"Piano"
201     \new Staff = "upper" \PianoRH
202     \new Staff = "lower" \PianoLH
203   >>
204 }
205
206 % ------ Bass Guitar ------
207 Bass = \relative c {
208   \Key
209   c1 | c | c
210 }
211 bass = {
212   \global
213   \set Staff.instrumentName = #"Bass"
214   \clef bass
215   <<
216     \Bass
217   >>
218 }
219
220 % ------ Drums ------
221 up = \drummode {
222   \voiceOne
223   hh4 <hh sn> hh <hh sn>
224   hh4 <hh sn> hh <hh sn>
225   hh4 <hh sn> hh <hh sn>
226 }
227 down = \drummode {
228   \voiceTwo
229   bd4 s bd s
230   bd4 s bd s
231   bd4 s bd s
232 }
233
234 drumContents = {
235   \global
236   <<
237     \set DrumStaff.instrumentName = #"Drums"
238     \new DrumVoice \up
239     \new DrumVoice \down
240   >>
241 }
242
243 %%%%%%%%% It All Goes Together Here %%%%%%%%%%%%%%%%%%%%%%
244
245 \score {
246   <<
247     \new StaffGroup = "horns" <<
248       \new Staff = "trumpet" \trumpet
249       \new Staff = "altosax" \altoSax
250       \new ChordNames = "barichords" \bariHarmony
251       \new Staff = "barisax" \bariSax
252       \new Staff = "trombone" \trombone
253     >>
254
255     \new StaffGroup = "rhythm" <<
256       \new ChordNames = "chords" \gtrHarmony
257       \new Staff = "guitar" \guitar
258       \new PianoStaff = "piano" \piano
259       \new Staff = "bass" \bass
260       \new DrumStaff \drumContents
261     >>
262   >>
263   \layout {
264     \context { \Staff \RemoveEmptyStaves }
265     \context {
266       \Score
267       \override BarNumber #'padding = #3
268       \override RehearsalMark #'padding = #2
269       skipBars = ##t
270     }
271   }
272   \midi { }
273 }
274