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