lilypond-user
[Top][All Lists]
Advanced

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

Re: staff-space as a variable


From: Edward Neeman
Subject: Re: staff-space as a variable
Date: Sun, 26 May 2019 21:06:54 +1000

Very clever! I’ll give it a try.

Thanks,
Edward
---
Dr. Edward Neeman
www.neemanpianoduo.com



> On 26 May 2019, at 1:19 pm, Aaron Hill <address@hidden> wrote:
> 
> 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>_______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user




reply via email to

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