Il 18/11/2012 14:28, Thomas Morley ha scritto:
boiled down, you want to use a function to set 'left 'text of TextSpanner.

How about:

\version "2.16.0"

barre =
#(define-music-function (parser location strg)(string?)
(let ((arg (string-append "B " strg)))
#{
         \override TextSpanner #'(bound-details left text) = $arg
#}))

startBarre = \startTextSpan
stopBarre = \stopTextSpan

\relative c' {
         \barre I c4\startTextSpan  d e f\stopTextSpan
         \barre II g\startBarre a b c\stopBarre
}

Thanks Harm!
It's perfect for my needs.

I wonder if above function can be improved to make the input even simpler and concise, like this:

\barre I { c4 d e f }


_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to