song2: Formatting.
[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"
35 \with {
36 instrumentName = #"Grand Stick"
37 shortInstrumentName = #"Stick"
38 midiInstrument = #"clav"
39 pedalSustainStyle = #'bracket
40 } { \stick }
41 \new TabStaff = "acoustic guitar"
42 \with {
43 stringTunings = #guitar-tuning
44 \RemoveEmptyStaves
45 \tabFullNotation
46 instrumentName = #"Acoustic Guitar"
47 shortInstrumentName = #"Guitar"
48 } { \tabChordRepeats \guitar }
49 >>
50
51 %% Two scores are needed: one with unfolded repeats for MIDI and the
52 %% other with regular repeats for notation.
53 \score {
54 \unfoldRepeats {
55 <<
56 \AllMusic
57 \new DrumStaff { \click }
58 >>
59 }
60 \midi { \tempo 4 = 90 }
61 }
62
63 \score {
64 \AllMusic
65 \layout {
66 \tempo 4 = 90
67 \context {
68 %% add the RemoveEmptyStaffContext that erases rest-only staves
69 \Staff \RemoveEmptyStaves
70 }
71 \context {
72 \Score
73 \numericTimeSignature
74 %% Remove all-rest staves also in the first system
75 \override VerticalAxisGroup.remove-first = ##t
76 %% If only one non-empty staff in a system exists, still print the starting bar
77 \override SystemStartBar.collapse-height = #1
78 }
79 }
80 }