Thank you Valentin,
the version 2 will be VERY useful!

Thanks a lot!

Il giorno dom 29 gen 2023 alle ore 14:23 Valentin Petzel <valen...@petzel.at>
ha scritto:

> 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
>
>

Reply via email to