Double TextSpan: Difference between revisions
Appearance
Import snippet from LSR |
m New category |
||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
in a polyphonic staff it is impossible to have two TextSpans one at the top and one at the bottom The solution is to make two voices | in a polyphonic staff it is impossible to have two TextSpans one at the top and one at the bottom The solution is to make two voices | ||
<lilypond version="2.24 | <lilypond version="2.24"> | ||
\paper { ragged-right = ##f } | \paper { ragged-right = ##f } | ||
| Line 33: | Line 33: | ||
[[Category:Fretted strings]] | [[Category:Fretted strings]] | ||
[[Category:Snippet]] | |||
Latest revision as of 23:21, 21 November 2025
in a polyphonic staff it is impossible to have two TextSpans one at the top and one at the bottom The solution is to make two voices
\version "2.24"
\paper { ragged-right = ##f }
\relative c' {
\time 3/4
%It's impossible to have two one textSpan at the top and one at the bottom
\override TextSpanner.bound-details.left.text= \markup\normal-text\circle"1"
<e f'>8 <g e'> <f d'> <g e'>^\startTextSpan <a f'> <bes g'>\stopTextSpan
%solution
%separate the voices
\voices 1,3
<<
{ %first voices
\override TextSpanner.bound-details.left.text= \markup\normal-text\circle"1"
f'8 e d e^\startTextSpan f g\stopTextSpan
}
\\
%second voice
{
%push the notes
\shiftOff
\override TextSpanner.bound-details.left.text= \markup\normal-text\circle "3"
%make Beam invisible
\override Beam.stencil =##f
a,8 g f g_\startTextSpan a bes\stopTextSpan
}
>>
}