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