Thanks for the additional information. I guess like with Python there are many ways to skin a cat.
I've already used this learning to add other stuff to tab ie. up/down pick, arpeggios, trills. The reason I'm doing this is that I need to give tab only to some folks, not for songs but more for practice. For songs the full tab is enough or both staffs. Most tabs will only have a few objects but I'm using this to learn about ly too. I'm loving the flexibility that ly gives. I previously had to use multiple bits of software to do what ly can do :-) You and the community with frescobaldi have helped me ditch windows for linux - I'm running ly on a 6 year old laptop with fedora. Best Lee On Sat, 16 Aug 2025 at 16:09, Knute Snortum <ksnor...@gmail.com> wrote: > Yes, I can see that setting an extra-offset once is easier than changing > the Y-offset many times. Good call. > > -- > Knute Snortum > > > > On Sat, Aug 16, 2025 at 8:04 AM Yoshiaki Onishi <i...@yoshionishi.com> > wrote: > >> I debated whether or not to suggest X- and Y-offsets instead of >> extra-offset for the reason the latter needs to be used with caution, but I >> ultimately suggested the extra-offset option because with Y-offset, the >> distance between number and the StemTremolo sign could suddenly differ >> depending on the pitches. Like when the Y-offset is set initially to a >> value, you don’t know when that distance starts to vary. But then I guess >> the same logic goes with the initial distance-setting with extra-offset, as >> well. >> >> >> On Sat, Aug 16, 2025 at 16:41 Knute Snortum <ksnor...@gmail.com> wrote: >> >>> 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 <leej...@gmail.com> 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 <i...@yoshionishi.com> >>>> 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 >>>> >>>>