]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/jazz-combo-template.ly
Snippets: Replace \set Staff.instrumentName
[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.19.56
8 \version "2.19.56"
9
10 \header {
11   lsrtags = "fretted-strings, keyboards, percussion, real-music, template"
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 \header {
24   title = "Song"
25   subtitle = "(tune)"
26   composer = "Me"
27   meter = "moderato"
28   piece = "Swing"
29   tagline = \markup {
30     \column {
31       "LilyPond example file by Amelie Zapf,"
32       "Berlin 07/07/2003"
33     } % begin verbatim
34
35   }
36 }
37 % To make the example display in the documentation
38 \paper {
39   paper-width = 130
40 }
41 %#(set-global-staff-size 16)
42 \include "english.ly"
43
44 %%%%%%%%%%%% Some macros %%%%%%%%%%%%%%%%%%%
45
46 sl = {
47   \override NoteHead.style = #'slash
48   \hide Stem
49 }
50 nsl = {
51   \revert NoteHead.style
52   \undo \hide Stem
53 }
54 crOn = \override NoteHead.style = #'cross
55 crOff = \revert NoteHead.style
56
57 %% insert chord name style stuff here.
58
59 jazzChords = { }
60
61 %%%%%%%%%%%% Keys'n'thangs %%%%%%%%%%%%%%%%%
62
63 global = { \time 4/4 }
64
65 Key = { \key c \major }
66
67 % ############ Horns ############
68
69 % ------ Trumpet ------
70 trpt = \transpose c d \relative c'' {
71   \Key
72   c1 | c | c |
73 }
74 trpHarmony = \transpose c' d {
75   \jazzChords
76 }
77 trumpet = {
78   \global
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   \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   \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   \clef bass
132   <<
133     \tbone
134   >>
135 }
136
137 % ############ Rhythm Section #############
138
139 % ------ Guitar ------
140 gtr = \relative c'' {
141   \Key
142   c1
143   \sl
144   b4 b b b
145   \nsl
146   c1
147 }
148 gtrHarmony = \chordmode {
149   \jazzChords
150   s1 c2:min7+ d2:maj9
151 }
152 guitar = {
153   \global
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   <<
187     \new Voice = "one" \rhUpper
188     \new Voice = "two" \rhLower
189   >>
190 }
191 PianoLH = {
192   \clef bass
193   \global
194   <<
195     \new Voice = "one" \lhUpper
196     \new Voice = "two" \lhLower
197   >>
198 }
199
200 piano = {
201   <<
202     \new Staff = "upper" \PianoRH
203     \new Staff = "lower" \PianoLH
204   >>
205 }
206
207 % ------ Bass Guitar ------
208 Bass = \relative c {
209   \Key
210   c1 | c | c
211 }
212 bass = {
213   \global
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     \new DrumVoice \up
238     \new DrumVoice \down
239   >>
240 }
241
242 %%%%%%%%% It All Goes Together Here %%%%%%%%%%%%%%%%%%%%%%
243
244 \score {
245   <<
246     \new StaffGroup = "horns" <<
247       \new Staff = "trumpet" \with { instrumentName = #"Trumpet" }
248       \trumpet
249       \new Staff = "altosax" \with { instrumentName = #"Alto Sax" }
250       \altoSax
251       \new ChordNames = "barichords" \with { instrumentName = #"Trumpet" }
252       \bariHarmony
253       \new Staff = "barisax" \with { instrumentName = #"Bari Sax" }
254       \bariSax
255       \new Staff = "trombone" \with { instrumentName = #"Trombone" }
256       \trombone
257     >>
258
259     \new StaffGroup = "rhythm" <<
260       \new ChordNames = "chords" \gtrHarmony
261       \new Staff = "guitar" \with { instrumentName = #"Guitar" }
262       \guitar
263       \new PianoStaff = "piano" \with {
264         instrumentName = #"Piano"
265         midiInstrument = #"acoustic grand"
266       }
267       \piano
268       \new Staff = "bass" \with { instrumentName = #"Bass" }
269       \bass
270       \new DrumStaff \with { instrumentName = #"Drums" }
271       \drumContents
272     >>
273   >>
274   \layout {
275     \context { \Staff \RemoveEmptyStaves }
276     \context {
277       \Score
278       \override BarNumber.padding = #3
279       \override RehearsalMark.padding = #2
280       skipBars = ##t
281     }
282   }
283   \midi { }
284 }