song2: click: Do not draw staff in score.
[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 >>
20
21 %% Two scores are needed: one with unfolded repeats for MIDI and the
22 %% other with regular repeats for notation.
23 \score {
24 \unfoldRepeats {
25 <<
26 \AllMusic
27 \new DrumStaff { \click }
28 >>
29 }
30 \midi { \tempo 4 = 90 }
31 }
32
33 \score {
34 \AllMusic
35 \layout {
36 \tempo 4 = 90
37 \context {
38 %% add the RemoveEmptyStaffContext that erases rest-only staves
39 \Staff \RemoveEmptyStaves
40 }
41 \context {
42 \Score
43 \numericTimeSignature
44 %% Remove all-rest staves also in the first system
45 \override VerticalAxisGroup.remove-first = ##t
46 %% If only one non-empty staff in a system exists, still print the starting bar
47 \override SystemStartBar.collapse-height = #1
48 }
49 }
50 }