lilypond-devel
[Top][All Lists]
Advanced

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

Re: Shorthand for \repeat unfold for individual notes


From: David Kastrup
Subject: Re: Shorthand for \repeat unfold for individual notes
Date: Tue, 24 Jan 2023 00:41:00 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Aaron Hill <lilypond@hillvisions.com> writes:

> There is already shorthand for tremolo repeats,

Not really.  The internal representations are different.

> so I wondered if there could be the same for cases when a single note
> or rest is repeated.
>
> %%
> % Start with music that has repeated notes:
> { \time 7/8 a8 8 8 b16 16 16 16 c4 }
>
> % Manually unfolded repeats work, but take up a lot of input space:
> { \time 7/8 \repeat unfold 3 a8 \repeat unfold 4 b16 c4 }
>
> % This produces the correct length of music without note repetition:
> { \time 7/8 a8*3 b16*4 c4 }
>
> % Possible shorthand for unfolded repeat:
> { \time 7/8 a8**3 b16**4 c4 }
> %%
>
> In a sense, the ** acts like (integral) scaling of a duration but with
> unfolded repetition as the realization.

What Scheme representation would you propose?

At any rate, postfix expressions require lookahead, and ** requires more
than one token of lookahead.  What constructs would you see as
candidates before ** ?

-- 
David Kastrup



reply via email to

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