|
From: | Valentin Petzel |
Subject: | Re: Override baseline-skip according layout-staff-size |
Date: | Sun, 29 Jan 2023 14:22:47 +0100 |
Hello, Basically you want to scale the baseline-skip along with the staff size (the reason for this is that measurement is in global staff spaces, not in layout staff spaces). You can achieve this in multiple ways: Version 0: Simply use the staff space as baseline-skip Version 1: Add a little markup trick to scale arbitrary markup properties by the staff space (include e.g. parentheses parameters). Version 2: Extract the actual line positions and staff space from the Staff symbol and place a symbol between all note lines Cheers, Valentin Am Sonntag, 29. Jänner 2023, 10:16:43 CET schrieb Rip _Mus: > Hello, > please, take a look: > > %%% > \version "2.24.0" > > xclefon = { > \set Staff.clefPosition = #3 > \override Staff.Clef.stencil = #(lambda (grob) > (parenthesize-stencil > (grob-interpret-markup grob > #{ \markup > \override #'(baseline-skip . 0.8) > \teeny \center-column { > \musicglyph "noteheads.s2cross" > \musicglyph "noteheads.s2cross" > \musicglyph "noteheads.s2cross" > \musicglyph "noteheads.s2cross" > } > #}) > 0.1 > 0.5 > 0.5 > 0)) > } > > \score { > { > c'4 > \xclefon > c'4 > } > \layout { #(layout-set-staff-size 16) } > } > %%% > > in "\override #'(baseline-skip . 0.8)" I'm trying to scale the > baseline-skip according to the part staff size (16), in fact 16/20 = > 0.8. I'd like to make this snippet more generic. > I tried to point, from within the markup, to the Clef grob staff-symbol > property, to get the staff size, but without success. > Could you please help me solve? > > Thank you > > Rip_mus
version2.ly
Description: Text Data
version1.ly
Description: Text Data
version0.ly
Description: Text Data
signature.asc
Description: This is a digitally signed message part.
[Prev in Thread] | Current Thread | [Next in Thread] |