lilypond-user
[Top][All Lists]
Advanced

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

Re: grace notes spacing


From: Martin Neubauer
Subject: Re: grace notes spacing
Date: Mon, 12 Oct 2020 03:48:01 +0200
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1




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

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