I have a music function I use for barring indications in guitar scores, and for a reason that I haven't been able to work out, if the TextSpanner used for the barring indication wraps from the staff where it begins to the following staff, and also terminates at the first note of that staff, then nothing gets drawn above that first note. If it wraps to the following staff and terminates at any note other than the first, then it works correctly.
Test code and output attached. The second barring indication should end on the first note of bar 16, but nothing displays. Nick
\version "2.12.2" #(ly:set-option 'delete-intermediate-files #t) barre = #(define-music-function (parser location fretnum osp shorten adjBreak adjEnd) (string? number? pair? number? number?) #{ \once \override TextSpanner #'outside-staff-priority = #$osp \once \override TextSpanner #'bound-details #'left #'text = \markup { \concat { "C" "." $fretnum " " } } \once \override TextSpanner #'style = #'line \once \override TextSpanner #'font-shape = #'upright \once \override TextSpanner #'bound-details #'right #'text = \markup { \draw-line #'(0 . -1) } \once \override TextSpanner #'bound-details #'left #'stencil-align-dir-y = #CENTER \once \override TextSpanner #'bound-details #'left #'padding = #(car $shorten) \once \override TextSpanner #'bound-details #'right #'padding = #(cdr $shorten) \once \override TextSpanner #'bound-details #'right-broken #'padding = #$adjEnd \once \override TextSpanner #'bound-details #'left-broken #'X = #$adjBreak \once \override TextSpanner #'bound-details #'left-broken #'text = ##f \once \override TextSpanner #'bound-details #'right-broken #'text = ##f #}) \relative c'' { a4 a a a a a a a a a a a a a a a a a a a a a a a \barre "5" #0 #'(-0.5 . -1) #6 #1 a\startTextSpan a a a a a\stopTextSpan a a a a a a a a a a a a a a a a a a a a a a a a a a \barre "5" #0 #'(-0.5 . -1) #6 #1 a\startTextSpan a a a a\stopTextSpan a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a }
<<attachment: test1.png>>
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user