|
From: | tisimst |
Subject: | Re: Using \startTextSpan and \stopTextSpan in separate music functions |
Date: | Fri, 16 Sep 2016 15:22:49 -0700 (MST) |
Your function doesn't integrate \start/stopTextSpan into the
'articulations of the music-arg, which is needed.
A most boiled down example would be:
mus = c'1
{ \mus \tenuto }
Would be probably nice to have it work, but I seem to remember there
are some problems, forgot what exactly though.
Your function could be done at the lines of:
myStartTextSpan = #(define-music-function (mus) (ly:music?)
(ly:music-set-property! mus 'articulations
(cons #{ \startTextSpan #}
(ly:music-property mus 'articulations)))
#{
\override TextSpanner.color = #red
#mus
#})
\relative c' {
\myStartTextSpan b'1
c \stopTextSpan
}
[Prev in Thread] | Current Thread | [Next in Thread] |