Add global settings.
[music/pretentious.git] / 03-circus / 03-circus.ly
1 \version "2.19.27"
2
3 \header {
4 title = "Circus"
5 composer = "The very pretentious elephlies"
6 copyright = \markup { \char ##x00A9 "2002—2016 Ricardo Wurmus" }
7 }
8
9 \include "../settings.ly"
10 \include "parts/bass.ly"
11 \include "parts/keyboard.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 = 120 }
27 }
28
29 \score {
30 \AllMusic
31 \layout {
32 \tempo 4 = 120
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 }