[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rules for beam subdivision
From: |
Thomas Morley |
Subject: |
Re: Rules for beam subdivision |
Date: |
Sun, 31 May 2020 14:15:16 +0200 |
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
}
The coding does a plethora of settings for 'subdivideBeams.
It should be limited to situations where a Beam is actually present/initiated.
Thus I wrote a _first_ sketch...
Cheers,
Harm