[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: loco function which adds markup to the *next* musical moment
From: |
David Kastrup |
Subject: |
Re: loco function which adds markup to the *next* musical moment |
Date: |
Wed, 21 Oct 2015 07:20:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Kieren MacMillan <address@hidden> writes:
> Hi David,
>
>> With my suggestion of an additional music expression, this
>> would end up as
>>
>> \ottava #1 c'' d'' e'' f'' \locoIII { r4 r r r } g’'
>
> Hmmm… Maybe even more efficient [from a typing perspective] would be
>
> \ottava #1 { c'' d'' e'' f’’ r4 r r r g’’ }
>
> where the function is designed to (1) start the given octavation on
> the first moment of the music expression, (2) end the octavation at
> the second-last moment [or optionally the last non-rest moment prior
> to the last moment], and (3) put “loco” over the last moment.
>
> I’ll try this as an exercise to improve my Scheme-fu.
Main problem is matching to differently nested constructs, like an
ottava into a repeat or triplet. As a general interface to the desired
functionality this is not really good for that reason. My proposal is
less likely to be affected since it wraps less, but for
\ottava #1 \triplet { c8 d \loco r8 } r4 c2
it could not be coaxed into working as desired either.
--
David Kastrup
Re: loco function which adds markup to the *next* musical moment, H. S. Teoh, 2015/10/20