song 2: stick: Fix alignment problems.
[music/pretentious.git] / 02-song2 / music / stick.ly
1 \include "../../stafftab.ly"
2 \include "../music/guitar.ly"
3
4 stickBreak = \unfoldRepeats \guitar
5
6 stickRepriseLeft = \relative c, {
7 \time 4/4
8 \repeat volta 3 {
9 <fis cis'>8 r16 <b fis'>16 r16 <fis cis'> <fis dis' a'>8 ~
10 <fis dis' a'>8 fis <dis' a'> fis, <f d' a'> r16 <f d' a'>8 r16 <fis cis' a'>8 ~
11 <fis cis' a'>2 |
12 } \alternative {
13 %% TODO: some notes are too low
14 { <fis cis'>8 r16 <b fis'>16 r16 a, b4 fis'8 <b fis'> cis,
15 <d d' a'>8 r16 a8 r16 fis4. ~ fis4 | }
16 { <fis' cis'>8 r16 <b fis'>16 r16 a, b4 fis'8 <b fis'> r
17 <f d' a'>8 r16 <f d' a'>8 r16 <fis cis' a'>4. ~ <fis cis' a'>4 | }
18 }
19 }
20
21 stickRepriseRight = \relative c' {
22 \time 4/4
23 \repeat volta 3 {
24 r8 <a cis fis>16-. r r r <a cis fis>8 ~
25 <a cis fis>4 ~ <a cis fis>4
26 <f' a d>8 r16 <f a d>8 r16 <fis gis cis>8 ~ <fis a cis>2 |
27 } \alternative {
28 {
29 r8 <a, cis fis>16-. r r r <dis fis b>8 ~
30 <dis fis b>4 ~ <dis fis b>4
31 <a d f>8 r16 <a d f>8 r16 <a cis fis>4. ~ <a cis fis>4 |
32 }
33 %% Same. Need to use alternative here in order to match the notes
34 %% for the left hand.
35 {
36 r8 <a, cis fis>16-. r r r <dis fis b>8 ~
37 <dis fis b>4 ~ <dis fis b>4
38 <a d f>8 r16 <a d f>8 r16 <a cis fis>4. ~ <a cis fis>4 |
39 }
40 }
41 }
42
43 stickFinalLeft = \relative c, {
44 \time 4/4
45 \repeat volta 4 { R1*4 }
46 R1
47 %% alternate right and left hand
48 %% keep this bar alive; it's filled later
49 s1
50 }
51
52 stickFinalRight = \relative c' {
53 \time 4/4
54 \repeat volta 4 { R1*4 }
55
56 b'16\1-2 a\1-1 fis\2-3 dis\2-1
57 b'\1-2 fis\2-3 dis\2-1 fis\2-3
58 dis\2-1 b\3-2 fis\4-3 b\3-2
59 fis\4-3 dis\4-1 b\5-2
60
61 \override Beam.auto-knee-gap = #100
62 \set subdivideBeams = ##t
63
64 %% alternate right and left hand
65 \change Staff = "stick left" fis\9-1
66 \tuplet 6/4 {
67 \change Staff = "stick right" d''\2-1 % fret: 7
68 \change Staff = "stick left" a\11-2 % fret: 5
69 \change Staff = "stick right" fis\4-3 % fret: 9
70 \change Staff = "stick left" a\11-2
71 \change Staff = "stick right" fis\4-2
72 \change Staff = "stick left" d\10-1 % fret: 5
73 }
74 \tuplet 6/4 {
75 \change Staff = "stick right" fis\4-1
76 \change Staff = "stick left" d\10-1
77 \change Staff = "stick right" a\6-3
78 \change Staff = "stick left" d\10-1
79 \change Staff = "stick right" a\6-3
80 \change Staff = "stick left" e'\10-3
81 }
82 \tuplet 6/4 {
83 \change Staff = "stick right" fis\4-1
84 \change Staff = "stick left" a\11-1
85 \change Staff = "stick right" cis\3-3
86 \change Staff = "stick left" a\11-1
87 \change Staff = "stick right" cis\3-3
88 \change Staff = "stick left" e\12-2
89 }
90 \override Beam.auto-knee-gap = #5.5
91 \tuplet 3/2 {
92 \change Staff = "stick right" cis\3-3
93 \change Staff = "stick left" e\12-2
94 \change Staff = "stick right" fis\2-3
95 }
96 gis16\1-2[ a\1-2] |
97
98 b16\1-2 a\1-1 fis\2-3 dis\2-1
99 b'\1-2 fis\2-3 dis\2-1 fis\2-3
100 dis\2-1 b\3-2 fis\4-3 b\3-2
101 fis\4-3 dis\4-1 b\5-2 fis'\4-3
102
103 f8\4-2 b\3-3 r8 d16\2-1 f\2-4 gis1.\1-2\trill
104 }
105
106 stick = <<
107 \new StaffTab = "stick right" \relative c' {
108 \clef "treble_8"
109 \set Staff.midiPanPosition = #-0.5
110 \set Staff.stringTunings = #stick-matched-reciprocal-tuning
111 \key b \minor
112 \time 1/4
113 #(mmrest-of-length stickBreak)
114
115 \time 4/4
116 \stickRepriseRight
117 \stickFinalRight
118 }
119
120 %% staff for left hand side
121 \new StaffTab = "stick left" \relative c {
122 \clef "bass"
123 \set Staff.midiPanPosition = #0.5
124 \set Staff.stringTunings = #stick-matched-reciprocal-tuning
125 \key b \minor
126 \time 1/4
127 #(mmrest-of-length stickBreak)
128 \time 4/4
129 \stickRepriseLeft
130 \stickFinalLeft
131 }
132 >>