parallelMusic and repeat

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

parallelMusic and repeat

Federico Bruni
I'm trying to use \parallelMusic to write polyphonic pieces.
Unfortunately, I can't use \repeat and \alternative, otherwise
everything breaks up. In fact, it interprets each line as a new
measure, it can't see the voices anymore.

I wonder if it's a bug or if I'm doing something wrong.. (I attach a
simple example)

And there's any workaround?

I can use \bar "|:" ":|" for repeats, but I don't know how to set the
alternate endings manually. Any hint?

There's any other problem with \parallelMusic? (I'm considering to use
it in my default templates..)

Thanks in advance for your help!

Federico

--
http://gnurag.net/blog/
http://fsfe.org/
http://groups.fsf.org/wiki/LibrePlanetItalia


\version "2.13.8"

\parallelMusic #'(VoiceA VoiceB) {
  % Bar 1
  % or I can remove \repeat and use \bar "|:"
  \repeat volta 2 {
  r4 g' c e ~ |
  c,1 |
 
  % Bar 2
  e4 g, c e ~ |
  b1 |
  %\bar ":|"
  }
 
  % Bar 3
  % 1st alternative - but how can I set alternatives without \repeat and \alternative?
  e4 a, c e |
  a1 |
 
  % Bar 4
  % 2nd alternative
  a,1 |
  a1 |
 
}

\new StaffGroup <<
\new Staff { \clef "G_8" \relative c << \VoiceA \\ \VoiceB  >> }
\new TabStaff { \clef "moderntab" \relative c << \VoiceA \\ \VoiceB  >> }
>>
Loading...