Carl Sorensen <carl.d.soren...@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