|
From: | Urs Liska |
Subject: | Re: Apply \editionMod to grace note |
Date: | Wed, 30 Dec 2015 20:52:25 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 |
Hi all, so: what is the incantation for ly:make-moment to address some point in a \partial ? Modifying David's snippet below to \version "2.19.30" { \partial 4 \once \override NoteHead.after-line-breaking = #(lambda (grob) (display (grob::when grob)) (newline)) c''4 d''1 } returns #<Mom 0> so nothing that would help me construct the proper make-moment call. Any help? TIA Urs Am 26.11.2015 um 16:58 schrieb
Jan-Peter Voigt:
Hi there, late to the party ;) Yes, the edition-engraver waits for a moment in time! In fact all notations like 1/4 are just shortcuts, which are directly converted to a ly:make-moment statement. And of course it also accepts direct input of a moment. So, as you already noticed, you can address a grace moment with something like #(ly:make-moment 1/8 -1/8) Btw, this also applies for \partial beats/upbeats. To sum up: There are two dimensions to address an override: The time - I would say horizontal - and the context - I would say vertical. Any point in time can be addressed with a barnumber and a moment in that bar (=horizontal) and a context specifier (=vertical). As long, as you can address the point in time and the context to modify, you can apply a modification. I would like to call it "tweak", but that name is reserved for "tweaks" to single notes (or the like). One might say, it adds another dimension or better increases granularity in the vertical dimension. I am thinking of introducing some kind of selector, so that one can say "Tweak (only) the cis'' in the chord at bar 21 moment 1/4 so that ...". HTH Jan-Peter Am 26.11.2015 um 15:46 schrieb David Nalesnik:Hi, On Thu, Nov 26, 2015 at 8:14 AM, Kieren MacMillan <address@hidden <mailto:address@hidden>> wrote: Hi Urs, > is there a way to apply an \editionMod to a grace note or acciaccatura? > What would be the proper "moment" of that? I’m not sure, but I would like to know! I’d also like to know how to address a partial (“pickup”) measure. I’ve asked before, but did not receive an answer. Sorry I couldn’t be of more help! Kieren. Is the edition engraver able to accept moments specified by ly:make-moment? If so, you can specify a moment using optional arguments. For example, the grace moment in the following snippet (see console display): \version "2.19.30" { c''4 \once \override NoteHead.after-line-breaking = #(lambda (grob) (display (grob::when grob)) (newline)) \grace c''8 d''2. } can be created this way: #(display (ly:make-moment 1 4 -1 8)) See the description of ly:make-moment in the IR (Scheme functions). HTH, David _______________________________________________ lilypond-user mailing list address@hidden https://lists.gnu.org/mailman/listinfo/lilypond-user_______________________________________________ lilypond-user mailing list address@hidden https://lists.gnu.org/mailman/listinfo/lilypond-user |
[Prev in Thread] | Current Thread | [Next in Thread] |