lilypond-user
[Top][All Lists]
Advanced

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

Re: Rules for beam subdivision


From: Vaughan McAlley
Subject: Re: Rules for beam subdivision
Date: Wed, 3 Jun 2020 12:55:25 +1000

On Sun, 31 May 2020 at 22:15, Thomas Morley <thomasmorley65@gmail.com> wrote:
>
> Am Sa., 30. Mai 2020 um 05:06 Uhr schrieb Vaughan McAlley
> <vaughan@mcalley.net.au>:
> >
> > Hi,
> >
> > Beam subdivision is great, but is there a way of automatically turning it off for just sixteenths? So recreating this example, but without constantly turning subdivision on and off.
> >
> > Cheers,
> > Vaughan
> >
> >
>
> A first sketch:
>
> \layout {
>   \context {
>       \Voice
>       \consists
>       #(lambda (ctx)
>         (make-engraver
>           (listeners
>             ((rhythmic-event this-engraver event)
>               (ly:context-set-property! ctx 'subdivideBeams
>                 (if (equal? (ly:event-property event 'length)
>                             (ly:make-moment 1/16))
>                     '()
>                     #t))))))
>   }
> }
>
> \relative c'' {
>   \time 4/4
>   \set baseMoment = #(ly:make-moment 1/8)
>   \set beatStructure = 2,2,2,2
>   c32 c c c c c c c
>   c16 c c c
>   \tuplet 3/2 8 { c16 c c c c c }
>   c16 c c c
> }
>

Thanks Harm, that works perfectly for my use case- my music almost never gets more complicated than that rhythmically.

> The coding does a plethora of settings for 'subdivideBeams.

Oh gosh, I bet it does…

> It should be limited to situations where a Beam is actually present/initiated.
> Thus I wrote a _first_ sketch...
>
> Cheers,
>   Harm

Cheers,
Vaughan




reply via email to

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