Michael Watts <zwy648rct <at> gmail.com> writes:

> 
> Try putting the textspanners into a separate voice with spacer notes.
> IIRC a textspanner needs to start on a 'real' note, so your
> textspanner voice would need transparent noteheads and stems.
> 


You can put TextSpanners on spacer note. However, then spacer notes space out
the notes that I actually want to bracket. Additionally, it would really be
annoying to do this for real; bars full of semiquavers, demisemiquavers and the
like....

\version "2.10.33"
textspan = {
       \override TextSpanner #'shorten-pair  = #'(-1.3 . -0.8)
       \override TextSpanner #'staff-padding = #1.0
       \override TextSpanner #'padding   = #0.5
       \override TextSpanner #'minimum-length  = #1.0
       \override TextSpanner #'dash-fraction  = #0.95
       \override TextSpanner #'edge-height = #'(1.2 . 1.2)
}

su = \startTextSpan
eu = \stopTextSpan

rhythm = \relative c''  { c4 c c c } %want bracket over second note
brackets = \relative c' { f8 f16\su f\eu } %spacer notes do work
                                          % these are here so i can see them

\score {
         \new Staff <<
                 \new Voice = "rhythm"  { \voiceOne << \textspan \rhythm >> }
                 \new Voice = "bracket" { \voiceTwo << \textspan \brackets >> }
         >>
}





_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to