|
From: | Mats Bengtsson |
Subject: | Re: Markup macro? |
Date: | Fri, 18 Aug 2006 09:39:55 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060417 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |