Jump to content

Let TabStaff print the topmost string at bottom

From LilyPond wiki
Revision as of 17:59, 10 December 2025 by Lemzwerg (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

In tablatures, the first string is usually printed topmost. If you want to have it at the bottom, set the stringOneTopmost context property to #f. For a context-wide setting this could be done in the \layout block as well.

\version "2.24"

%\layout {
%  \context {
%    \Score
%    stringOneTopmost = ##f
%  }
%  \context {
%    \TabStaff
%    tablatureFormat = #fret-letter-tablature-format 
%  }
%}

m = {
  \cadenzaOn
  e, b, e gis! b e'
  \bar "||"
}

<<
  \new Staff {
    \clef "G_8"
    <>_"default" \m
    <>_"italian (historic)"\m
  }
  \new TabStaff 
  {
    \m
    \set Score.stringOneTopmost = ##f 
    \set TabStaff.tablatureFormat = #fret-letter-tablature-format 
    \m
  }
>>