|
From: | Jonathan Kulp |
Subject: | Re: string-lines |
Date: | Thu, 09 Jul 2009 15:03:59 -0500 |
User-agent: | Thunderbird 2.0.0.22 (X11/20090608) |
http://lsr.dsi.unimi.it/LSR/Item?u=1&id=616A 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
[Prev in Thread] | Current Thread | [Next in Thread] |