On 2021-09-30 12:36 am, Silvain Dupertuis wrote:
One problem with this suggestion that Lilypond does not support the
simple use of digits in variable names.
As far as I understand, it is because a digit following directly
alphabetic characters is interpreted as a duration.

I think the idea would be that \voice would be itself a music function:

%%%%
voice = #(define-music-function (n) (index?)
 (context-spec-music (make-voice-props-set (1- n)) 'Voice))

<< { \voice1 b'4 c'' } \\ { \voice2 g'2 } >>
%%%%


-- Aaron Hill

Reply via email to