song 2: Add simple chord track.
[music/pretentious.git] / 02-song2 / 02-song2.ly
index f5089ee75840f142328547ff8f6e3f113371a280..99e7a20b4077b910a56aa919dff796a909296a92 100644 (file)
@@ -11,6 +11,7 @@
 \include "music/stick.ly"
 \include "music/guitar.ly"
 \include "music/click.ly"
+\include "music/chords.ly"
 
 \layout {
   ragged-last = ##t
@@ -54,6 +55,8 @@ AllMusic = <<
   } { \tabChordRepeats \guitar }
 >>
 
-AllMusicMIDI = \AllMusic
+AllMusicMIDI = #(if (string-null? (getenv "LILYPOND_USE_CHORDS"))
+                 #{ \AllMusic #}
+                 #{ \chordTrack #})
 
 \include "../layouts.ly"