On 11/10/2020 21:26, Kieren MacMillan wrote:
Note that I had to unfold the \repeat in the lower staff, in order to easily 
apply the tweak to the correct moment. This is one of the [many!] reasons I use 
the edition-engraver: you can inject the tweak at an exact moment, regardless 
of how the musical elements in that moment were generated.
What I found really nice is the possibility to program the input to the edition engraver to handle tweaks to the same moment within numerous bars. Here's a particularly silly (in so many ways...) example illustrating the idea using just some very basic scheme:
>>>>>
\version "2.21.6"

\include "oll-core/package.ily"

\loadPackage edition-engraver

\consistToContexts #edition-engraver Score.Staff.Voice

\addEdition beams

\editionModList beams notes.Voice [ #(map (lambda (n) (cons n '(3/8))) (iota 30 1)) \editionModList beams notes.Voice ] #(map (lambda (n) (cons n '(5/8))) (iota 30 1))

\new Staff \with {
  \editionID ##f notes
} {
  \repeat unfold 40 {
    \repeat unfold 8 {
      c'8
    }
  }
}
<<<<<

Attachment: OpenPGP_0x57FC077AF9176739.asc
Description: application/pgp-keys

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to