Add target to render guide track.
[music/pretentious.git] / 04-white-noise / 04-white-noise.ly
1 \version "2.19.27"
2
3 \header {
4 title = "White Noise"
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 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 = 120 }
61 }
62
63 \score {
64 \AllMusic
65 \layout {
66 \tempo 4 = 120
67 \context {
68 %% add the RemoveEmptyStaffContext that erases rest-only staves
69 \Staff \RemoveEmptyStaves
70 }
71 \context {
72 \Score
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 }