song 1: stick: Use more volta repeats.
[music/pretentious.git] / 01-song1 / 01-song1.ly
1 \version "2.19.27"
2
3 \header {
4 title = "Song 1"
5 composer = "The very pretentious elephlies"
6 copyright = \markup { \char ##x00A9 "2002—2016 Ricardo Wurmus" }
7 }
8
9
10 \include "../settings.ly"
11 \include "music/common.ly"
12 \include "music/bass.ly"
13 \include "music/keys.ly"
14 \include "music/stick.ly"
15 \include "music/click.ly"
16
17 \layout {
18 ragged-last = ##t
19 indent = 2\cm
20 short-indent = 1.5\cm
21 }
22
23 AllMusic = <<
24 \new PianoStaff = "keyboard"
25 \with {
26 instrumentName = #"Synthesizer"
27 shortInstrumentName = #"Synth"
28 pedalSustainStyle = #'bracket
29 } {
30 <<
31 \new Staff {
32 \clef treble
33 \keyboard
34 }
35 >>
36 }
37 \new StaffGroup = "bass"
38 \with {
39 instrumentName = #"Bass"
40 shortInstrumentName = #"Bass"
41 } { \bass }
42 \new PianoStaff = "grand stick"
43 \with {
44 instrumentName = #"Grand Stick"
45 shortInstrumentName = #"Stick"
46 midiInstrument = #"clav"
47 pedalSustainStyle = #'bracket
48 } { \stick }
49 >>
50
51 %% Two scores are needed: one with drums for MIDI and the other for
52 %% notation.
53 \score {
54 \unfoldRepeats {
55 <<
56 \AllMusic
57 \new DrumStaff { \click }
58 >>
59 }
60 \midi { \tempo 4 = 180 }
61 }
62
63 \score {
64 %% Always unfold repeats in the big score. The individual parts can
65 %% have repeats as they wish.
66 \unfoldRepeats { \AllMusic }
67 \layout {
68 \tempo 4 = 180
69 \context {
70 %% add the RemoveEmptyStaffContext that erases rest-only staves
71 \Staff \RemoveEmptyStaves
72 }
73 \context {
74 \Score
75 \numericTimeSignature
76 %% Remove all-rest staves also in the first system
77 \override VerticalAxisGroup.remove-first = ##t
78 %% If only one non-empty staff in a system exists, still print the starting bar
79 \override SystemStartBar.collapse-height = #1
80 }
81 }
82 }