On 12/29/08 3:56 PM, "Neil Puttock" <n.putt...@gmail.com> wrote:
> Hi Stefan,
>
> 2008/12/29 Stefan Thomas <kontrapunktste...@googlemail.com>:
>> Dear lilypond-users,
>> I have the following, I guess very simple problem, that I can't solve.
>> How can I get the beams in the below quoted example automatically?
>
> I'm afraid this is more complicated than it used to be, since you need
> to do two things:
>
> - revert the default auto-beam setting (as described here:
> http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Beams#Setting-automa
> tic-beam-behavior),
> using revert-auto-beam-setting.
>
> #(revert-auto-beam-setting '(end * * 2 4) 1 4)
>
>
This reversion is necessary in all cases, and I think we should get rid of
it so it's not necessary, since the default beatLength will produce this
beaming.
Once you have reverted the undesired auto-beam setting, you have three ways
to set the desired auto-beam setting:
1) use #(override-auto-beam-setting '(end * * 2 4) 2 4)
2) use \set beatGrouping = #'(2)
or
3) adjust the beatLength.
> override the default beatLength so it's no longer one crotchet;
> instead make it the length of the bar:
>
> \set beatLength = #(ly:make-moment 1 2)
>
My preference is to use beatGrouping, because it's the most intuitive to me.
Here's a snippet that shows all three methods in use.
\version "2.12"
\score {
\relative c' {
\time 2/4
c'8 d e f
#(revert-auto-beam-setting '(end * * 2 4) 1 4)
#(override-auto-beam-setting '(end * * 2 4) 2 4)
c8 d e f
#(revert-auto-beam-setting '(end * * 2 4) 2 4)
\set beatLength = #(ly:make-moment 1 2)
c8 d e f
\set beatLength = #(ly:make-moment 1 4)
\set beatGrouping = #'(2)
c8 d e f
}
}
Thanks,
Carl
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user