lilypond-user
[Top][All Lists]
Advanced

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

Re: RepeatSlash size is changed when StaffSymbol.staff-space is override


From: David Kastrup
Subject: Re: RepeatSlash size is changed when StaffSymbol.staff-space is overriden in 2.24
Date: Tue, 15 Aug 2023 21:48:53 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

Viktor Mastoridis <viktor.mastoridis@gmail.com> writes:

> On Tue, 15 Aug 2023 at 10:59, Jean Abou Samra <jean@abou-samra.fr> wrote:
>
>> Le mardi 15 août 2023 à 01:37 +0100, Viktor Mastoridis a écrit :
>> > The previous code (shrink =...) doesn't work for tabs...
>>
>>
>> It works here:
>
> Ah, it's TabStaff (not Staff), of course!
> \layout {
>   \context {
> *    \TabStaff...*
>
> Thank you so much for your help, Jean!

If you want to cover _all_ Staff-like contexts, you can do

\version "2.24.2"

shrink =
\propertyTweak stencil
  #(grob-transformer 'stencil (lambda (grob orig) (ly:stencil-scale orig 0.7
0.7)))
  \etc

\layout {
  \shrink Staff.PercentRepeat
  \shrink Staff.RepeatSlash
  \shrink Staff.DoubleRepeatSlash
}

\new TabStaff \with {
  stringTunings = #ukulele-tuning
}
\relative c {
  \tabFullNotation
  \repeat percent 2 { c'4 d e g}
  \repeat percent 2 { c,16 d16 e8}
  \repeat percent 2 { c8 d8}
}

-- 
David Kastrup

reply via email to

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