lilypond-user
[Top][All Lists]
Advanced

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

Re: Repeats in \parallelMusic


From: David Kastrup
Subject: Re: Repeats in \parallelMusic
Date: Tue, 25 Aug 2015 18:34:29 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

David Sumbler <address@hidden> writes:

> Is there a way of using "\repeat volta 2" and similar when using
> the \parallelMusic command?  The following does not work:
>
>
> \version "2.18.0"
>
> \parallelMusic #'(Vone Vtwo) {
> %bar 1
>     \repeat volta 2 { d''1 |
>     \repeat volta 2 { f'1 |
> %bar 2    
>     c''1 } |
>     e'1 } |
> }
>
> \score { <<
>     \new Staff { \Vone }
>     \new Staff { \Vtwo }
>     >> }
>
>
> I have tried repositioning the braces but none of my experiments so far
> have produced the desired result.

It's simpler than you think it is.  You only need the structure to
descend into once.

\version "2.18.0"

\parallelMusic #'(Vone Vtwo) {
%bar 1
    \repeat volta 2 { d''1 |
                       f'1 |
%bar 2    
                      c''1 |
                      e'1  |
    } g''1 | c''1 |
}

\score { <<
    \new Staff { \Vone }
    \new Staff { \Vtwo }
    >> }

-- 
David Kastrup

reply via email to

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