Am 09.12.2012 18:09, schrieb Christopher Brooks:
> *Why does this work:*
> \score {
>    \repeat volta 2 {
>    \time 3/4 …
>       }
> }
> *But this doesn’t?*

> \score {
>    \time 3/4
>    \repeat volta 2 { …
>       }
> 
> }

> I moved \time 3/4 before \repeat volta.

Because the music must be included in braces { }. With the \repeat
command the \time and the notes are a combined muscial expression. But
with the \time command before \repeat you have two muscial expressions
at toplevel in the score: \time and \repeat and LilyPond can not guess
how to put staves and voices around.

An extra pair of braces solves it:

\score {
  {
    \time 3/4
    \repeat volta 2 {
      <d'-0 a'-0>8. a'16 d'8 a' d'16 a'8.
    }
  }
}

(If my explanation is wrong, more experienced people can probably tell
you more.)

Cheers,
Joram

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to