Add chord track (enable with LILYPOND_USE_CHORDS).
[music/pretentious.git] / 03-circus / 03-circus.ly
index 42ad6c8d2fb4023b8d0bc3af54e55be28ee7d2a9..9dc3e191cc3d4d42d2df70b1ed1f42b35f691898 100644 (file)
@@ -6,41 +6,49 @@
   copyright = \markup { \char ##x00A9 "2002—2016 Ricardo Wurmus" }
 }
 
-\include "../settings.ly"
 \include "music/bass.ly"
-\include "music/keyboard.ly"
+\include "music/keys.ly"
 \include "music/stick.ly"
 \include "music/click.ly"
 
+\layout {
+  ragged-last = ##t
+  indent = 2\cm
+  short-indent = 1.5\cm
+}
+
 AllMusic = <<
-  \new Staff = "keyboard"    { \keyboard }
-  \new Staff = "bass"        { \bass }
-  \new Staff = "grand stick" { \stick }
-  \new DrumStaff { \click }
+  \new PianoStaff = "keyboard"
+  \with {
+    instrumentName = #"Synthesizer"
+    shortInstrumentName = #"Synth"
+    pedalSustainStyle = #'bracket
+  } {
+    <<
+      \new Staff {
+        \clef treble
+        \keyboardUpper
+      }
+      \new Staff {
+        \clef bass
+        \keyboardLower
+      }
+    >>
+  }
+  \new StaffGroup = "bass"
+  \with {
+    instrumentName = #"Bass"
+    shortInstrumentName = #"Bass"
+  } { \bass }
+  \new PianoStaff = "grand stick"
+  \with {
+    instrumentName = #"Grand Stick"
+    shortInstrumentName = #"Stick"
+    midiInstrument = #"clav"
+    pedalSustainStyle = #'bracket
+  } { \stick }
 >>
 
-%% Two scores are needed: one with unfolded repeats for MIDI and the
-%% other with regular repeats for notation.
-\score {
-  \unfoldRepeats { \AllMusic }
-  \midi { \tempo 4 = 120 }
-}
+AllMusicMIDI = AllMusic
 
-\score {
-  \AllMusic
-  \layout {
-    \tempo 4 = 120
-    \context { 
-      %% add the RemoveEmptyStaffContext that erases rest-only staves
-      \Staff \RemoveEmptyStaves 
-    }
-    \context {
-      \Score
-      \numericTimeSignature
-      %% Remove all-rest staves also in the first system
-      \override VerticalAxisGroup.remove-first = ##t
-      %% If only one non-empty staff in a system exists, still print the starting bar
-      \override SystemStartBar.collapse-height = #1
-    }
-  }
-}
+\include "../layouts.ly"