lilypond-user
[Top][All Lists]
Advanced

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

Re: repeats in parallel mode?


From: Reinhold Kainhofer
Subject: Re: repeats in parallel mode?
Date: Sun, 11 Jul 2010 18:06:57 +0200
User-agent: KMail/1.13.5 (Linux/2.6.32-23-generic; KDE/4.4.5; i686; ; )

Am Sonntag, 11. Juli 2010, um 05:20:19 schrieb William Bajzek:
> I just read about the \parallelMusic function and was trying it out. First
> of all, I'd like to say that I think it's great because it is a very
> convenient way to lay out multi-voice music. The problem I've run into can
> be seen in the following; I expect it to emit two measures but it emits
> four instead. Hopefully my intent is clear enough; what's the right way to
> do this?

> \parallelMusic #'(voiceA voiceB) {
>    \key c \major
>    \time 4/4
> 
>       \repeat volta 2 {
>               c4 c c c  | %voiceA measure 1
>               c,4 c c c | %voiceB measure 1
>       }
> 
>       \repeat volta 2 {
>               g4 g g g  | %voiceA measure 2
>               g,4 g g g | %voiceB measure 2
>       }
> 
> }

You need to place every measure into a separate repeat:

\parallelMusic #'(voiceA voiceB) {
   \key c \major
   \time 4/4

      \repeat volta 2 { c4 c c c }  | %voiceA measure 1
      \repeat volta 2 { c,4 c c c } | %voiceB measure 1

      \repeat volta 2 { g4 g g g } | %voiceA measure 2
      \repeat volta 2 { g,4 g g g } | %voiceB measure 2
}


Then it works just fine.

Cheers,
Reinhold


-- 
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org



reply via email to

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