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