[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shortcut for \repeat unfold
From: |
Werner LEMBERG |
Subject: |
Re: Shortcut for \repeat unfold |
Date: |
Wed, 29 Sep 2021 06:48:33 +0000 (UTC) |
>> 28x { d a b fs | g d g a }
>>
>> https://gitlab.com/lilypond/lilypond/-/merge_requests/937
>
> That is a clever proposal. I am already fond of it. Thank you.
+1
>> I like that, thanks! Carl's concerns w.r.t. whitespace are valid,
>> though. Would it be possible to make the invalid syntax '28 x'
>> produce a nice error message like
>>
>> invalid <whatever>, did you mean '28x'?
>
> It's not unconceivable to build whitespace into the lexer pattern
> and have { 5 x c'1 } work. [...]
Aah, nice :-)
> What this means is that if you create a custom note name language
> (with the undocumented not-yet-having-interface #(set!
> language-pitch-names (acons 'mylang my-pitch-alist
> language-pitch-names))), you won't be able to call a note 'x',
> because
>
> { c4 x4 }
>
> will be understood as
>
> { c 4x 4 }
>
> I don't see that as a big deal. Using 'r' or 'R' or 'q' as a note
> name is already not supported. To me, the addition of this
> shorthand is worth a new element on this list.
I agree.
Werner