lilypond-user
[Top][All Lists]
Advanced

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

Re: beaming patterns


From: Neil Puttock
Subject: Re: beaming patterns
Date: Mon, 17 Mar 2008 22:11:12 +0000

On 16/03/2008, irenicus <address@hidden> wrote:
>
> Hm, the reason why it doesn't work for me is probably some kind of
>  interaction with the second voice:
>
> \set beatLength = #(ly:make-moment 3 8)
>  <<
>
>         {c''4.~c''8. c''16 c''16 c''16}
>         \\
>         {c'16 [c' c' c' c' c' c' c' c' c' c' c']}
>  >>
>

Both overrides

\set beatLength = #(ly:make-moment 3 8)
#(revert-auto-beam-setting '(end * * 6 8) 3 8)

are working at the voice context. When you create a polyphonic section
using the shorthand << \\ >>, you're creating two new voices which are
separate from the main voice, hence why the overrides have no effect.

In the case of the beatLength setting, you'll have to insert it (or a
macro to save typing and improve clarity) inside each polyphonic
section as required. You can't apply it globally, since you're
combining two voices with incompatible beaming.

As for reverting the auto-beam setting, you can either set it per
stave or for the whole score by adding the context options as follows:

#(revert-auto-beam-setting '(end * * 6 8) 3 8 'Staff)
#(revert-auto-beam-setting '(end * * 6 8) 3 8) 'Score)

\version "2.11.42"
\paper { ragged-right = ##t }

setBeat = \set beatLength = #(ly:make-moment 3 8)
clearBeat = \unset beatLength

\relative c'' {
        \time 6/8
        %turn off default autobeaming for 6/8
        %this time in staff context, applies to any beaming on this stave
        #(revert-auto-beam-setting '(end * * 6 8) 3 8 'Staff)
        \setBeat
        %this polyphonic section ignores the new beat length
        <<
        { c16 c8 c16 c c c16 c8 c16 c c }
        \\
        { c,16 c c c c c c c c c c c}
        >>
        %fixed by setting inside polyphonic section
        <<
        {
                \setBeat c'16 c8 c16 c c c16 c8 c16 c c
                \clearBeat c16 c c c c c c c c c c c
        }
        \\
        {
                c,16 c c c c c c c c c c c
                \setBeat c16 c8 c16 c c c16 c8 c16 c c
        }
        >>
}

Regards,
Neil




reply via email to

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