Jump to content

Let TabStaff print the topmost string at bottom: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
Line 1: Line 1:
In tablatures usually the first string is printed topmost. If you want to have it at the bottom change the <code>stringOneTopmost</code>-context-property. For a context-wide setting this could be done in <code>layout</code> as well.
In tablatures usually the first string is printed topmost. If you want to have it at the bottom change the <code>stringOneTopmost</code>-context-property. For a context-wide setting this could be done in <code>layout</code> as well.


<lilypond version="2.24.0">
<lilypond version="2.24">
%\layout {
%\layout {
%  \context {
%  \context {

Revision as of 18:53, 16 November 2025

In tablatures usually the first string is printed topmost. If you want to have it at the bottom change the stringOneTopmost-context-property. For a context-wide setting this could be done in layout 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
  }
>>