Add global settings.
[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 copyright = \markup { \char ##x00A9 "2002—2016 Ricardo Wurmus" }
7 }
8
9 \include "../settings.ly"
10 \include "parts/bass.ly"
11 \include "parts/keys.ly"
12 \include "parts/stick.ly"
13 \include "parts/guitar.ly"
14 \include "parts/click.ly"
15
16 \layout {
17 ragged-last = ##t
18 indent = 2\cm
19 short-indent = 1.5\cm
20 }
21
22 AllMusic = <<
23 \new Staff = "keyboard"
24 \with {
25 instrumentName = #"Synthesizer"
26 shortInstrumentName = #"Synth"
27 pedalSustainStyle = #'bracket
28 } { \keyboard }
29 \new StaffGroup = "bass"
30 \with {
31 instrumentName = #"Bass"
32 shortInstrumentName = #"Bass"
33 } { \bass }
34 \new PianoStaff = "grand stick" \with {
35 instrumentName = #"Grand Stick"
36 shortInstrumentName = #"Stick"
37 midiInstrument = #"clav"
38 pedalSustainStyle = #'bracket
39 } { \stick }
40 \new TabStaff = "acoustic guitar"
41 \with {
42 stringTunings = #guitar-tuning
43 \RemoveEmptyStaves
44 \tabFullNotation
45 instrumentName = #"Acoustic Guitar"
46 shortInstrumentName = #"Guitar"
47 } { \tabChordRepeats \guitar }
48 >>
49
50 %% Two scores are needed: one with unfolded repeats for MIDI and the
51 %% other with regular repeats for notation.
52 \score {
53 \unfoldRepeats {
54 <<
55 \AllMusic
56 \new DrumStaff { \click }
57 >>
58 }
59 \midi { \tempo 4 = 90 }
60 }
61
62 \score {
63 \AllMusic
64 \layout {
65 \tempo 4 = 90
66 \context {
67 %% add the RemoveEmptyStaffContext that erases rest-only staves
68 \Staff \RemoveEmptyStaves
69 }
70 \context {
71 \Score
72 \numericTimeSignature
73 %% Remove all-rest staves also in the first system
74 \override VerticalAxisGroup.remove-first = ##t
75 %% If only one non-empty staff in a system exists, still print the starting bar
76 \override SystemStartBar.collapse-height = #1
77 }
78 }
79 }