lilypond-user
[Top][All Lists]
Advanced

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

Re: voiceOne and oneVoice


From: Aaron Hill
Subject: Re: voiceOne and oneVoice
Date: Thu, 30 Sep 2021 00:55:10 -0700
User-agent: Roundcube Webmail/1.4.9

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

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