Am 04.12.2010 um 23:05 schrieb James Bailey:

I don't understand alternatives. Can someone explain to me what I'm doing wrong. Why does the first example not compile properly with the excuse, "more alternatives than repeats" but the second example compiles just fine?
Hi James,
in your first example you used a pipe symbol outside of the braces of the first alternative. Delete it or use it inside the unfold-braces and both examples will compile.

HTH,
patrick

\version "2.12.3"

\book {
\relative c'' {
   \time 3/4
   \repeat volta 2 {
      g4 g8 g g4  |
   }
   \alternative {
      { \repeat unfold 4 { g4 g8 g g4 } } |
      { \repeat unfold 2 { g2. } }
   }
   g2.
}
}

\book {
\relative c'' {
   \time 3/4
   \repeat volta 2 {
      g4 g8 g g4  |
   }
   \alternative {
      { \repeat unfold 4 { g2. } }
      { \repeat unfold 2 { g2. } }
   }
   g2.
}
}


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to