lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: string-lines


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)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]