song 2: bass: Use volta repeat with segno.
authorRicardo Wurmus <rekado@elephly.net>
Thu, 23 Feb 2017 19:30:58 +0000 (20:30 +0100)
committerRicardo Wurmus <rekado@elephly.net>
Thu, 23 Feb 2017 19:30:58 +0000 (20:30 +0100)
02-song2/music/bass.ly

index 93a24bc..954cf8e 100644 (file)
@@ -147,15 +147,18 @@ bassMusic = {
   \time 4/4
   R1*8
 
-  \key b \minor
-  \bassA
-  \key e \major
-  \bassBWithHarmonic
-
-  \key b \minor
-  \bassA
-  \key e \major
-  \bassBWithoutHarmonic
+  \repeat volta 2 {
+    \inStaffSegno % start repeat
+    \key b \minor
+    \bassA
+    \key e \major
+    \bassB
+  } \alternative {
+    %% with harmonic
+    { a,8. b8 r16 e,2 \ottava #1 d'''8_"D.S."\flageolet \ottava #0 \bar "|." |}
+    %% without harmonic
+    { a,8. b8 r16 e,2 f8 |}
+  }
 
   \key fis \minor
   \bassTransition