From b33da4c31629a753839b6eabc3c949fac6b9b908 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Sat, 6 May 2017 22:04:56 +0200 Subject: song 2: Add simple chord track. --- 02-song2/02-song2.ly | 5 ++- 02-song2/music/chords.ly | 84 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+), 1 deletion(-) create mode 100644 02-song2/music/chords.ly (limited to '02-song2') diff --git a/02-song2/02-song2.ly b/02-song2/02-song2.ly index f5089ee..99e7a20 100644 --- a/02-song2/02-song2.ly +++ b/02-song2/02-song2.ly @@ -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" diff --git a/02-song2/music/chords.ly b/02-song2/music/chords.ly new file mode 100644 index 0000000..20f8aa2 --- /dev/null +++ b/02-song2/music/chords.ly @@ -0,0 +1,84 @@ +chordsIntro = \relative c { + \repeat volta 4 { + 4. 4. ~ q4 | + 4. 4. ~ q4 | + } +} + +chordsStanza = \relative c { + \repeat volta 2 { + 4. 4. ~ q4 | + 4. 4. ~ q4 | + + 4. 4. ~ q4 | + } \alternative { + { 4. 2 r8 |} + { 8. 8. 8 ~ q2 |} + } +} + +chordsB = \relative c' { + 4. 4. ~ q4 | + 4. 4. ~ q4 | + 4. 4. ~ q4 | + 4. 8*5 +} + +chordTrack = \relative c { + \set PianoStaff.midiInstrument = #"electric piano 1" + \time 4/4 + \key b \minor + \chordsIntro + \repeat volta 2 { + \key b \minor + \chordsStanza + \key e \major + \chordsB + } + + \repeat volta 2 { + 1 | 1 | + 1 | 1 | + } + + \transpose c d { + \repeat volta 2 { + r16 8 16 8 16 + 8 8 r16 r4 | + r16 8 16 8 16 + 16 r16 16 4 r8 | + } + \repeat volta 2 { + r16 g8 fis16 g8 fis16 g8 g8 r16 r4 | + r16 g8 fis16 g8 fis16 g16 r16 g16 fis4 r8 | + }} + + \time 6/8 + 2. | 2. | + 2. | 2. | + 2. | 2. | + 2. | 2. | + + %% three + \transpose c d { + \time 6/8 + \repeat volta 2 { + 16 8 q q16 q16 8 q q16 | + q16 8 q r16 a,8\5 q | + } + + 16 q r q r q + q16 8 q8 q16 | + r16 r q r q + q16 8 q8 q16 | + + 16 q r q r q + q16 8 q8 q16 | + r16 8 q r16 q8 q r8 | + } + + \keysMartaRekado + \stickRepriseLeft + \keysFinal +} + -- cgit v1.2.3