song2: Add click.
[music/pretentious.git] / 02-song2 / 02-song2.ly
1 \version "2.19.27"
2
3 \header {
4 title = "Song 2"
5 composer = "The very pretentious elephlies"
6 arranger = "Ricardo Wurmus"
7 copyright = "2002--2015 Ricardo Wurmus"
8 }
9
10 \include "parts/bass.ly"
11 \include "parts/keys.ly"
12 \include "parts/stick.ly"
13 \include "parts/click.ly"
14
15 AllMusic = <<
16 \new Staff = "keyboard" { \keyboard }
17 \new Staff = "bass" { \bass }
18 \new Staff = "grand stick" { \stick }
19 \new DrumStaff { \click }
20 >>
21
22 %% Two scores are needed: one with unfolded repeats for MIDI and the
23 %% other with regular repeats for notation.
24 \score {
25 \unfoldRepeats { \AllMusic }
26 \midi { \tempo 4 = 90 }
27 }
28
29 \score {
30 \AllMusic
31 \layout {
32 \tempo 4 = 90
33 \context {
34 %% add the RemoveEmptyStaffContext that erases rest-only staves
35 \Staff \RemoveEmptyStaves
36 }
37 \context {
38 \Score
39 \numericTimeSignature
40 %% Remove all-rest staves also in the first system
41 \override VerticalAxisGroup.remove-first = ##t
42 %% If only one non-empty staff in a system exists, still print the starting bar
43 \override SystemStartBar.collapse-height = #1
44 }
45 }
46 }