lilypond-user
[Top][All Lists]
Advanced

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

Re: Convert staff-spaces to mm on the fly?


From: Saul Tobin
Subject: Re: Convert staff-spaces to mm on the fly?
Date: Sun, 29 Dec 2024 11:52:34 -0500

Would it work to run in the global scope the same function that initializes the units within output-def modules?


On Sun, Dec 29, 2024, 11:38 AM David Kastrup <dak@gnu.org> wrote:
Timothy Lanfear <timothy@lanfear.me> writes:

> On 29/12/2024 12:57, Richard Shann wrote:
>> Is there a way of writing
>>
>> \override #'(line-width . 100)
>>
>> so that the value is interpreted as mm rather than staff-spacings?
>>
>> Richard
>>
> Recent 2.25 releases have the scheme function to-staff-space,
> Otherwise you can get the conversion factor from the paper.

Arguably within markup, the layout block should be the active module.
That would make this just

\override #`(line-width . ,(* 100 mm))

But at the current point of time, this is not the case, and the above
does not work.

--
David Kastrup


reply via email to

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