lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

parallelMusic and repeat


From: Federico Bruni
Subject: parallelMusic and repeat
Date: Mon, 07 Dec 2009 09:30:49 +0100
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)

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  >> }
>>

reply via email to

[Prev in Thread] Current Thread [Next in Thread]