On 8/19/10 8:17 AM, "Hans Aberg" <haber...@telia.com> wrote:
> On 19 Aug 2010, at 15:38, Carl Sorensen wrote:
>
>> beatStructure is set *per voice*, and since you have parallel music
>> in the
>> staff, you are creating 3 different voices in the staff, one of
>> which has
>> #'(4 2 3) beaming but no notes. By using braces to combine things
>> sequentially instead of in parallel, it works properly.
>>
>> music = \new Staff <<
>> {
>> \time 9/16
>> \set beatStructure = #'(4 2 3)
>> % \set beatStructure = #'(4 3 2)
>> \repeat unfold 9 {c''16}
>> }
>
> Thank you. But then this does not work:
> music = \new Staff <<
> {
> \time 9/16
> \set beatStructure = #'(4 3 2)
> \repeat unfold 9 {a'16}
> }
> {
> \time 9/16
> \set beatStructure = #'(4 2 3)
> \repeat unfold 9 {c''16}
> }
>>>
>
> Though this does:
>
> music = \new Staff <<
> \new Voice = "foo" {
> \time 9/16
> \set beatStructure = #'(4 3 2)
> \repeat unfold 9 {a'16}
> }
> \new Voice = "bar" {
> \time 9/16
> \set beatStructure = #'(4 2 3)
> \repeat unfold 9 {c''16}
> }
Yes, that's true. One must be careful about how LilyPond creates voices or
not. Explicit Voice creation is, IMO, always a good thing to do when one
wants to have different behavior in the different voices.
Thanks,
Carl
>>>
>
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user