lilypond-user
[Top][All Lists]
Advanced

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

Re: aligning variables with upbeats


From: 智樂喬
Subject: Re: aligning variables with upbeats
Date: Thu, 7 Feb 2019 23:28:16 +0800

Valentin:
If you really want to keep your variables separate, you’ll have to use simultaneous music instead of sequential expressions :

That's what I was afraid of…

{\oneVoice s1*15/4 \partB}

I'd like to avoid having to count bars/beats because it's kind of inefficient and makes using variables in this way a lot more clumsy and prone to error.

David:
I'd rather just have two versions of partA, one before an upbeat and one not.

I'd also like to avoid defining two variables, to keep things a little DRYer.

What I imagine might be idea would be a function which works similarly to skip-of-length, but takes an argument to subtract a specified length from the variable. I imagined something like the following:

#{skip-of-length (- (ly:length-of partA) (ly:make-moment 1/4))) \partB

And then put that in a function to make it more compact and easy to use.

Randy

reply via email to

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