Adding markups in a tablature: Difference between revisions
Appearance
Import snippet from LSR |
mNo edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
By default markups | By default, markups are not displayed in a tablature. | ||
To make them appear, | To make them appear, revert the <code>stencil</code> property of the <code>TextScript</code> grob in the <code>TabStaff</code> context. | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
% | % LSR by P.P.Schneider on June 2014 | ||
high = { r4 r8 <g c'> q r8 r4 } | high = { r4 r8 <g c'> q r8 r4 } | ||
low = { c4 r4 c8 r8 g,8 b, } | low = { c4 r4 c8 r8 g,8 b, } | ||
pulse = { s8^"1" s^"&" s^"2" s^"&" s^"3" s^"&" s^"4" s^"&" } | pulse = { s8^"1" s^"&" s^"2" s^"&" s^"3" s^"&" s^"4" s^"&" } | ||
| Line 25: | Line 22: | ||
\override TextScript.font-size = #-2 | \override TextScript.font-size = #-2 | ||
\override TextScript.color = #red | \override TextScript.color = #red | ||
} | } | ||
\context { | \context { | ||
| Line 35: | Line 31: | ||
</lilypond> | </lilypond> | ||
[[Category:Editorial annotations]] | |||
[[Category:Fretted strings]] | [[Category:Fretted strings]] | ||
[[Category:Text]] | [[Category:Text]] | ||
[[Category:Tweaks and overrides]] | [[Category:Tweaks and overrides]] | ||
[[Category:Included in the official documentation]] | [[Category:Included in the official documentation]] | ||
[[Category:Snippet]] | |||
Latest revision as of 12:04, 11 December 2025
By default, markups are not displayed in a tablature.
To make them appear, revert the stencil property of the TextScript grob in the TabStaff context.
\version "2.24"
% LSR by P.P.Schneider on June 2014
high = { r4 r8 <g c'> q r8 r4 }
low = { c4 r4 c8 r8 g,8 b, }
pulse = { s8^"1" s^"&" s^"2" s^"&" s^"3" s^"&" s^"4" s^"&" }
\score {
\new TabStaff {
\repeat unfold 2 << \high \\ \low \\ \pulse >>
}
\layout {
\context {
\TabStaff
\clef moderntab
\revert TextScript.stencil
\override TextScript.font-series = #'bold
\override TextScript.font-size = #-2
\override TextScript.color = #red
}
\context {
\Score
proportionalNotationDuration = #(ly:make-moment 1/8)
}
}
}