[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Short TextSpanner
From: |
Peter Buhr |
Subject: |
Re: Short TextSpanner |
Date: |
Sat, 05 Mar 2011 11:59:04 -0500 |
http://lilypond.org/doc/v2.13/Documentation/notation/writing-text#index-text-spanners_002c-formatting
See the two snippets, they might help.
Well, not that helpful. What kind of "Event" should I specify? And my guess is
that span will still try to put a line of some form after the text.
Also
http://lilypond.org/doc/v2.13/Documentation/internals/textspanner
You can use a dash length of '0.0'
Yea, I tired that already and lots of other stuff, too (see below). It does
make the line invisible, but TextSpanner is still leaving a blank horizontal
space after the text that is the same length as the line. You can see this by
toggling dashed-line to solid-line below; the position of C5 remains constant
in either case, but the line toggles on and off.
\version "2.13.9"
\include "english.ly"
#(set-default-paper-size "letter")
#(set-global-staff-size 24)
notes = \relative c' {
\set fingeringOrientations = #'(left)
\override TextSpanner #'style = #'solid-line
\override TextSpanner #'bound-details #'right #'text = \markup {
\draw-line #'(0 . -1 ) }
\override TextSpanner #'bound-details #'left #'text = \markup{
\center-align { "C3" } }
\override TextSpanner #'bound-details #'right #'padding = #'-1
\override TextSpanner #'bound-details #'left #'stencil-align-dir-y =
#CENTER
<c-1 c'-3 e-4 g-1>4
\startTextSpan
\override TextSpanner #'style = #'dashed-line % toggle to solid-line
\override TextSpanner #'dash-period = #'-1
\override TextSpanner #'dash-fraction = #'0
\override TextSpanner #'bound-details #'left #'text = \markup{
\left-align { "C5" } }
\override TextSpanner #'bound-details #'right #'text = \markup { "" }
<f-1 c'-2 f-4 a-3>4
\stopTextSpan
\startTextSpan
<g-3 b-2 d-1 g-1>4
\stopTextSpan
\stemDown
<c, c' e g>4^\markup{ \left-align { "C7" } }
} % relative
\score {
<<
\context Voice = one {
\notes
}
>>
} % score
% Local Variables: %
% tab-width: 4 %
% compile-command: "lilypond --ps test2.ly" %
% End: %