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