Jazz combo template
This is quite an advanced template, for a jazz ensemble. Note that all instruments use \key c \major. This refers to the key in concert pitch; the key will be automatically transposed if the music is within a \transpose section.
\version "2.24"
\header {
title = "Song"
subtitle = "(tune)"
composer = "Me"
meter = "moderato"
piece = "Swing"
tagline = \markup \column {
"LilyPond example file by Amelie Zapf,"
"Berlin 07/07/2003" }
}
% To make the example display properly in the documentation.
\paper {
paper-width = 130\mm
paper-height = 205\mm
}
% #(set-global-staff-size 16)
\include "english.ly"
%%%%%%%%%%%% Some macros %%%%%%%%%%%%%%%%%%%
sl = { \override NoteHead.style = #'slash
\hide Stem }
nsl = { \revert NoteHead.style
\undo \hide Stem }
crOn = \override NoteHead.style = #'cross
crOff = \revert NoteHead.style
% Insert chord name style stuff here.
jazzChords = { }
%%%%%%%%%%%% Keys'n'thangs %%%%%%%%%%%%%%%%%
global = { \time 4/4 }
Key = { \key c \major }
% ############ Horns ############
% ------ Trumpet ------
trpt = \transpose c d \relative c'' {
\Key
c1 | c | c |
}
trpHarmony = \transpose c' d {
\jazzChords
}
trumpet = {
\global
\clef treble
\trpt
}
% ------ Alto Saxophone ------
alto = \transpose c a \relative c' {
\Key
c1 | c | c |
}
altoHarmony = \transpose c' a {
\jazzChords
}
altoSax = {
\global
\clef treble
\alto
}
% ------ Baritone Saxophone ------
bari = \transpose c a' \relative c {
\Key
c1 | c1 |
\sl d4^"Solo" d d d \nsl |
}
bariHarmony = \transpose c' a \chordmode {
\jazzChords
s1 | s |
d2:maj e:m7 |
}
bariSax = {
\global
\clef treble
\bari
}
% ------ Trombone ------
tbone = \relative c {
\Key
c1 | c | c |
}
tboneHarmony = \chordmode {
\jazzChords
}
trombone = {
\global
\clef bass
\tbone
}
% ############ Rhythm Section #############
% ------ Guitar ------
gtr = \relative c'' {
\Key
c1 |
\sl b4 b b b \nsl |
c1 |
}
gtrHarmony = \chordmode {
\jazzChords
s1 | c2:min7+ d2:maj9 | s1 |
}
guitar = {
\global
\clef treble
\gtr
}
%% ------ Piano ------
rhUpper = \relative c'' {
\voiceOne
\Key
c1 | c | c |
}
rhLower = \relative c' {
\voiceTwo
\Key
e1 | e | e |
}
lhUpper = \relative c' {
\voiceOne
\Key
g1 | g | g |
}
lhLower = \relative c {
\voiceTwo
\Key
c1 | c | c |
}
PianoRH = {
\clef treble
\global
<<
\new Voice = "one" \rhUpper
\new Voice = "two" \rhLower
>>
}
PianoLH = {
\clef bass
\global
<<
\new Voice = "one" \lhUpper
\new Voice = "two" \lhLower
>>
}
piano = <<
\new Staff = "upper" \PianoRH
\new Staff = "lower" \PianoLH
>>
% ------ Bass Guitar ------
Bass = \relative c {
\Key
c1 | c | c |
}
bass = {
\global
\clef bass
\Bass
}
% ------ Drums ------
up = \drummode {
\voiceOne
hh4 <hh sn> hh <hh sn> |
hh4 <hh sn> hh <hh sn> |
hh4 <hh sn> hh <hh sn> |
}
down = \drummode {
\voiceTwo
bd4 s bd s |
bd4 s bd s |
bd4 s bd s |
}
drumContents = {
\global
<<
\new DrumVoice \up
\new DrumVoice \down
>>
}
%%%%%%%%% It All Goes Together Here %%%%%%%%%%%%%%%%%%%%%%
\book {
\score {
<<
\new StaffGroup = "horns" <<
\new Staff = "trumpet" \with { instrumentName = "Trumpet" }
\trumpet
\new Staff = "altosax" \with { instrumentName = "Alto Sax" }
\altoSax
\new ChordNames = "barichords" \with { instrumentName = "Bari Sax" }
\bariHarmony
\new Staff = "barisax" \with { instrumentName = "Bari Sax" }
\bariSax
\new Staff = "trombone" \with { instrumentName = "Trombone" }
\trombone
>>
\new StaffGroup = "rhythm" <<
\new ChordNames = "chords" \with { instrumentName = "Guitar" }
\gtrHarmony
\new Staff = "guitar" \with { instrumentName = "Guitar" }
\guitar
\new PianoStaff = "piano" \with {
instrumentName = "Piano"
midiInstrument = "acoustic grand"
} \piano
\new Staff = "bass" \with { instrumentName = "Bass" }
\bass
\new DrumStaff \with { instrumentName = "Drums" }
\drumContents
>>
>>
\layout {
\context {
\Staff
\RemoveEmptyStaves
}
\context {
\Score
\override BarNumber.padding = 3
\override RehearsalMark.padding = 2
skipBars = ##t
}
}
\midi { }
}
}