]> git.donarmstrong.com Git - lilypond.git/blob - input/template/jazz-combo.ly
*** empty log message ***
[lilypond.git] / input / template / jazz-combo.ly
1 \version "2.3.4"
2 \header {
3         title = "Song"
4         subtitle = "(tune)"
5         composer = "Me"
6         meter = "moderato"
7         piece = "Swing"
8         tagline = "LilyPond example file by Amelie Zapf, Berlin 07/07/2003"
9         texidoc = "Jazz tune for combo (horns, guitar, piano, bass, drums)."
10 }
11
12 #(set-global-staff-size 16)
13 \include "english.ly"
14
15 %%%%%%%%%%%% Some macros %%%%%%%%%%%%%%%%%%%
16
17 sl = {
18     \override NoteHead  #'style = #'slash
19     \override Stem  #'transparent = ##t
20 }
21 nsl = {
22     \revert NoteHead #'style
23     \revert Stem #'transparent
24 }
25 cr = \override NoteHead  #'style = #'cross
26 ncr = \revert NoteHead #'style
27
28 %% insert chord name style stuff here.
29
30 jzchords = { } 
31
32
33 %%%%%%%%%%%% Keys'n'thangs %%%%%%%%%%%%%%%%%
34
35 global =  {
36     \time 4/4
37 }
38
39 Key =  { \key c \major }
40
41 % ############ Horns ############
42 % ------ Trumpet ------
43 trpt =  \transpose c d \relative c'' {
44     \Key
45     c1 c c
46 }
47
48 trpharmony = \transpose c' d { \jzchords }
49 trumpet = {
50     \global 
51     \set Staff.instrument = #"Trumpet"
52     \clef treble
53     \context Staff <<
54         \trpt
55     >>
56 }
57
58 % ------ Alto Saxophone ------
59 alto = \transpose c a \relative c' {
60         \Key
61         c1 c c
62 }
63
64 altoharmony = \transpose c' a { \jzchords }
65 altosax = {
66         \global
67         \set Staff.instrument = #"Alto Sax"
68         \clef treble
69         \context Staff <<
70                 \alto
71         >>
72 }
73
74 % ------ Baritone Saxophone ------
75 bari = \transpose c a' \relative c {
76         \Key
77         c1 c \sl d4^"Solo" d d d \nsl
78 }
79
80 bariharmony = \transpose c' a \chords { \jzchords s1 s d2:maj e:m7 }
81 barisax = {
82         \global
83         \set Staff.instrument = #"Bari Sax"
84         \clef treble
85         \context Staff <<
86                 \bari
87         >>
88 }
89 % ------ Trombone ------
90 tbone =  \relative c {
91         \Key
92         c1 c c
93 }
94
95 tboneharmony = \chords { \jzchords }
96 trombone = {
97         \global
98         \set Staff.instrument = #"Trombone"
99         \clef bass
100         \context Staff <<
101                 \tbone
102         >>
103 }
104 % ############ Rhythm Section #############
105 % ------ Guitar ------
106 gtr =  \relative c'' {
107         \Key
108         c1 \sl b4 b b b \nsl c1
109 }
110
111 gtrharmony = \chords { \jzchords
112         s1 c2:min7+ d2:maj9
113 }
114
115 guitar = {
116         \global
117         \set Staff.instrument = #"Guitar"
118         \clef treble
119         \context Staff <<
120                 \gtr
121         >>
122 }
123
124 %% ------ Piano ------
125 rhUpper =  \relative c'' {
126         \voiceOne
127         \Key
128         c1 c c
129 }
130
131 rhLower =  \relative c' {
132         \voiceTwo
133         \Key
134         e1 e e
135 }
136
137 lhUpper =  \relative c' {
138         \voiceOne
139         \Key
140         g1 g g
141 }
142
143 lhLower =  \relative c {
144         \voiceTwo
145         \Key
146         c1 c c
147 }
148
149 PianoRH = {
150         \clef treble
151         \global
152         \set Staff.midiInstrument = "acoustic grand"
153         \context Staff <<
154                 \context Voice = one \rhUpper
155                 \context Voice = two \rhLower
156         >>
157 }
158
159 PianoLH = {
160         \clef bass
161         \global
162         \set Staff.midiInstrument = "acoustic grand"
163         \context Staff <<
164                 \context Voice = one \lhUpper
165                 \context Voice = two \lhLower
166         >>
167 }
168
169 piano = {
170         \context PianoStaff <<
171                 \set PianoStaff.instrument = #"Piano"
172                 \context Staff = upper \PianoRH
173                 \context Staff = lower \PianoLH
174         >>
175 }
176
177 % ------ Bass Guitar ------
178 bass =  \relative c {
179         \Key
180         c1 c c
181 }
182
183 bass = {
184     \global
185     \set Staff.instrument = #"Bass"
186     \clef bass
187     \context Staff <<
188         \bass
189     >>
190 }
191
192                                 % ------ Drums ------
193
194 up = \drums {
195     hh4 <hh sn>4 hh <hh sn> hh <hh sn>4
196     hh4 <hh sn>4
197     hh4 <hh sn>4
198     hh4 <hh sn>4
199 }
200
201 down = \drums {
202     bd4 s bd s bd s bd s bd s bd s
203 }
204
205 drumContents = {
206         \global
207         <<
208                 \set DrumStaff.instrument = #"Drums"
209                 \new DrumVoice { \voiceOne \up }
210                 \new DrumVoice { \voiceTwo \down }
211         >>
212 }
213
214 %%%%%%%%% It All Goes Together Here %%%%%%%%%%%%%%%%%%%%%%
215
216 \score {
217 <<
218         \context StaffGroup = horns <<
219                 \context Staff = trumpet \trumpet
220
221                 \context Staff = altosax \altosax
222
223                 \context ChordNames = barichords \bariharmony
224
225                 \context Staff = barisax \barisax
226
227                 \context Staff = trombone \trombone
228         >>
229
230         \context StaffGroup = rhythm <<
231                 \context ChordNames = chords \gtrharmony
232                 \context Staff = guitar \guitar
233                 \context PianoStaff = piano \piano
234                 
235                 \context Staff = bass \bass
236                 
237                 \new DrumStaff { \drumContents }
238         >>
239 >>
240         \paper {
241                 linewidth = 15.0 \cm
242                 \context { \RemoveEmptyStaffContext }
243                 \context {
244                         \Score
245                         \override BarNumber #'padding = #3
246                         \override RehearsalMark #'padding = #2
247                         skipBars = ##t
248                 }
249         }
250         \midi { \tempo 4 = 75 }
251 }