[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Get current staff size
From: |
Timothy Lanfear |
Subject: |
Re: Get current staff size |
Date: |
Fri, 10 Apr 2020 14:37:49 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 10/04/2020 13:24, Noeck wrote:
Am 10.04.20 um 14:12 schrieb Valentin Villenave:
(* 4 (ly:output-def-lookup
This yields 16 for a default staff here. Should the factor be 5?
Cheers,
Joram
Try this instead, which displays the staff height in mm and pt
\version "2.20.0"
\paper {
#(layout-set-staff-size 20.0)
}
#(begin
(newline)
(display (ly:output-def-lookup $defaultpaper 'staff-height))
(newline)
(display (/ (ly:output-def-lookup $defaultpaper 'staff-height) (ly:pt
1) ))
(newline))
\new Staff { b }
--
Timothy Lanfear, Bristol, UK.