Stewart Holmes wrote:
Okay... I've tried that, but I'm still getting an error. A test file:
fingerSwitch =
#(define-music-function (parser location text) (string?)
(make-music 'TextScriptEvent
'direction 1
'text (markup #:finger text)))
\relative
{
c1-\fingerSwitch "5-4" | c | c | c |
}
gives me the error, "syntax error, unexpected MUSIC_FUNCTION_SCM". I'm
not quite sure what I'm doing wrong.
It seems as if you just found one of the features that differ between
version 2.8 and 2.9. I don't know any details but it's probably related to
Erik's major revision of the front end of LilyPond.
One simple solution that works well in both 2.8 and 2.9 is:
fingerscript = {
\once \override TextScript #'font-size = #-5
\once \override TextScript #'font-encoding = #'fetaNumber
}
\relative
{
\fingerscript c1-"1-2" | c | c |
}
Unfortunately, this low-tech solution doesn't use your newly acquired skills
in writing music functions. ;-)
/Mats
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user