[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: PATCH: Doc: Clarify \relative inside \repeat issue.
From: |
Carl Sorensen |
Subject: |
Re: PATCH: Doc: Clarify \relative inside \repeat issue. |
Date: |
Tue, 11 May 2010 10:48:29 -0600 |
On 5/11/10 10:40 AM, "Carl Sorensen" <address@hidden> wrote:
> In the example above:
>
> \context Voice \repeat unfold 2 \relative c' {c2 d},
>
> \relative c' { c2 d } is a single music expression, so it doesn't need {}
> around it to turn it into a sequence in order to work with \repeat unfold 2.
> Similarly, \repeat unfold 2 music is a single music expression, so it
> doesn't need {} to turn it into a sequence to work with \relative c'.
Oops -- I had a thinko there: s/\\relative c'/\\context Voice/ in the final
sentence above.
>
> But in order to avoid the confusion that can arise, the GDP standards say
> that even a single music expression should be surrounded by {} when is is an
> argument to a lilypond command or music function.
>
> So we would go
>
> \context Voice { % { not strictly needed by LilyPond syntax
> \repeat unfold 2 { % { not strictly needed
> \relative c' { % { needed; c2 d is *not* a single music expression
> c2 d
> }
> }
> }
>
>
> HTH,
>
> Carl
>
>
> _______________________________________________
> lilypond-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-devel