Federico Bruni wrote:
Even this (just repeat without alternatives) does not work:

\parallelMusic #'(VoiceA VoiceB) {
  \repeat volta 2 {
  r4 g' c e ~ |
  c,1 |

  e4 g, c e ~ |
  b1 |
  }
}

Everything inside the \repeat braces is considered as a single music expression, so I'm not surprised if \parallelMusic does not even try to subdivide it.


I can't understand what you mean with "instantiating a \parallelMusic
construct for every volta and alternative".

I meant something like the following:

\parallelMusic #'(partIA partIB) { ... }
\parallelMusic #'(repeatA repeatB) { ... }
\parallelMusic #'(altIA altIB) { ... }
\parallelMusic #'(altIIA altIIB) { ... }
\parallelMusic #'(partIIA partIIB) { ... }

voiceA = {
  \partIA
  \repeat unfold 2 \repeatA
  \alternative {
    \altIA
    \altIIA
  }
  \partIIA
}
voiceB = { ... } % the same for B

It's ugly, I know - but at least it should work, and as long as you don't have too many repeats, it might be worth it.


Cheers,
Alexander


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

Reply via email to