David Sumbler <da...@aeolia.co.uk> 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
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to