Thanks for the help, Neil. I've added a snippet showing this
feature to LSR here:
http://lsr.dsi.unimi.it/LSR/Item?u=1&id=616
A TODO is to turn it into a scheme function whereby you could just
type something like \stringNumberSpanner "5" to set all of these
parameters:
\override TextSpanner #'style = #'solid
\override TextSpanner #'font-size = #-5
\override TextSpanner #'(bound-details left stencil-align-dir-y)
= #CENTER
\override TextSpanner #'(bound-details left text) = \markup {
\circle \number 5 }
Right now each string number in the snippet has its own
definition, which is not very elegant. I just got a Scheme
programming language book for my birthday (yeah!) so maybe this
will be my first project. :)
Jon
Neil Puttock wrote:
You can use stencil-align-dir-y instead of \lower here.
\override TextSpanner #'font-shape = #'solid
You can remove this.
\override TextSpanner #'font-size = #'-2
If you use \number for the markup, -5 will match string numbers exactly.
\relative c {
\clef "treble_8"
b16 d g b e
\textSpannerDown
\override TextSpanner #'style = #'solid
\override TextSpanner #'font-size = #-5
\override TextSpanner #'(bound-details left stencil-align-dir-y) = #CENTER
\override TextSpanner #'(bound-details left text) = \markup { \circle
\number 6 }
\set stringNumberOrientations = #'(down)
g16\startTextSpan
b16 e g e b g\stopTextSpan
e16 b g d
}
Regards,
Neil
--
Jonathan Kulp
http://www.jonathankulp.com
_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user