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