lilypond-user
[Top][All Lists]
Advanced

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

Re: Compute \tempo from variables


From: Aaron Hill
Subject: Re: Compute \tempo from variables
Date: Thu, 01 Feb 2024 08:21:25 -0800

On 2024-02-01 7:36 am, David Hobach wrote:
Hi all,

I'd like to compute the \tempo directive from variables, but couldn't yet figure out how to do it.

For example, let's say I have two variables such as
myTempoBase = 4
myTempo = 80

Then I'd like to do something such as
global = {
        \key c \major
        \time 4/4
        \tempo \myTempoBase = \myTempo
}

I'd expect it to resolve to \tempo 4 = 80. The above code however fails on 2.24.1.

Any ideas?

%%%%
myTempoBase = ##{ 4 #}
%%%%

That seems to work. Otherwise, myTempoBase is just a number and not a duration.


-- Aaron Hill



reply via email to

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