extra-offset is certainly useful but it should be used with care because
its effect happens after LilyPond has done all its rendering. Use Y-offset
and X-offset when you can. So in your case possibly:
myNotes = \relative c' {
\override TabStaff.StemTremolo.stencil = #ly:stem-tremolo::print
\override TabStaff.StemTremolo.Y-offset = -1.5
\repeat tremolo 4 g16
\repeat tremolo 4 a16
\override TabStaff.StemTremolo.Y-offset = 0
\repeat tremolo 4 b16
}
--
Knute Snortum
On Sat, Aug 16, 2025 at 12:47 AM Lee <[email protected]> wrote:
> Thanks for the link - stencil makes sense - I got it working with -0.7 :-)
>
> Whatever developer put in the .extra-offset is very wise.
>
> Have a good weekend.
>
> Lee
>
>
> On Fri, 15 Aug 2025 at 20:00, Yoshiaki Onishi <[email protected]>
> wrote:
>
>> > I'm transcribing some guitar music with tremolo picking which means the
>> single note is up/down picked very rapidly.
>> >
>> > I've managed to get the double slashes on the staff with code below -
>> thanks to the super documentation.
>> >
>> > Is it possible to get the double slash on the tab sheet just below the
>> note whilst keeping it on the staff?
>> >
>> > \version "2.25.7"
>> >
>> > myNotes = \relative c' {
>> > \repeat tremolo 4 g16
>> > \repeat tremolo 4 a16
>> > \repeat tremolo 4 b16
>> >
>> > }
>> >
>> > \score {
>> > <<
>> > \new Staff {
>> > \clef "treble_8"
>> > \myNotes
>> > }
>> > \new TabStaff
>> > \myNotes
>> >
>> > >>
>> >
>> > }
>> >
>> > Appreciate help. Everything I've needed to do with notation has been
>> possible so far.
>>
>>
>> Dear Lee,
>>
>> Tldr: Inserting the following line between "myNotes = \relative c’ {“ and
>> “\repeat tremolo 4 g16”
>>
>> \override TabStaff.StemTremolo.stencil = #ly:stem-tremolo::print
>>
>> Will force LilyPond to have the tremolo sign show up on the TabStaff.
>> However, you may notice that the tremolo signs are often colliding with the
>> numbers. So I might suggest a global “bringing-down” of these tremolo
>> signs, by adding the following line:
>>
>> \override TabStaff.StemTremolo.extra-offset = #'(0 . -1)
>>
>> Instead of -1, you might like -0.5.
>>
>>
>> A bit more details: according to the documentation, TabStaff has some
>> “stencils” turned off, and StemTremolo is one of them:
>>
>> https://lilypond.org/doc/v2.24/Documentation/internals/tabstaff
>>
>>
>> All the best,
>> Yoshi
>
>