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:58:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Carl Sorensen <carl.d.sorensen@gmail.com> writes:

> I'm not in favor.
>
> a8**3 is 5 key strokes.
> a8 8 8 is 6 key strokes.
> In exchange for saving one key stroke, I have a new operator to remember
> (and get confused about) and to maintain changes to the lexer and parser.
>
> I get the lack of utility of \repeat unfold (14 keystrokes) for short music
> expressions (like a single note).  But I don't think that ** is intuitive
> enough to use it.
>
> What about
>
> %%%%%%
> \version "2.24"
>
> dup =
> #(define-music-function
>         (count mus)
>         (number? ly:music?)
>         #{
>           \repeat unfold $count $mus
>         #})
>
> {\time 7/8 \dup #3 a8 \dup #4 b16 c4}
> %%%%%
>
> If you don't like the name dup, you could use ru (short for repeat
> unfold)

"\\*" works as well, giving

{\time 7/8 \*3 a8 \*4 b16 c4}

-- 
David Kastrup



reply via email to

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