|
From: | Aaron Hill |
Subject: | Re: staff-space as a variable |
Date: | Sat, 25 May 2019 20:19:21 -0700 |
User-agent: | Roundcube Webmail/1.3.8 |
On 2019-05-25 7:34 pm, Edward Neeman wrote:
Thanks Xavier, that is a much neater option than going with ballpark figures as I did in my example. Though since I have two different staff sizes in two different output files, it still means I have to do something like this:\tag #’clarinet { \override TupletBracket.padding = #(* (magstep -4) 1.1) }\tag #’piano { \override TupletBracket.padding = #1.1 } and set the appropriate keep-with-tag in the separate \score blocks.
Does the following help? %%%% \version "2.19.82" scaleByStaffSpace = #(define-scheme-function (value) (number?) (lambda (grob) (* value (ly:staff-symbol-staff-space grob)))) \layout { \context { \Staff \override TupletBracket.padding = \scaleByStaffSpace #1.1 } } music = \fixed c' { d4 \tuplet 3/2 { g8 a b } fis2 } #(define phi (/ (+ (sqrt 5) 1) 2)) \new Staff \with { \magnifyStaff $(/ phi) } \music \new Staff \music \new Staff \with { \magnifyStaff $phi } \music %%%% -- Aaron Hill
staffspace.cropped.png
Description: PNG image
[Prev in Thread] | Current Thread | [Next in Thread] |