[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Get current staff size
From: |
Valentin Villenave |
Subject: |
Re: Get current staff size |
Date: |
Fri, 10 Apr 2020 12:12:43 +0000 |
On 4/9/20, Kevin Barry <address@hidden> wrote:
> Is there a way to obtain the current value of the staff size as set
> with set-global-staff-size (or the layout version)?
Would something like that help?
%%%
\applyOutput Staff.StaffSymbol #(lambda (grob org cur)
(ly:message "\nCurrent staff size is: ~a\n\n"
(* 4 (ly:output-def-lookup
(ly:grob-layout grob) 'staff-height)))) \new Staff { b }
%%%
Cheers,
V.