How about using define-scheme-function instead?
-Abraham
Sent from my iPhone
> On Nov 18, 2014, at 3:15 AM, Schneidy [via Lilypond]
> <ml-node+s1069038n16878...@n5.nabble.com> wrote:
>
> Hi All,
>
> I'm trying to convert this v2.16 file :
> http://lilypond-french-users.1298960.n2.nabble.com/attachment/7581913/0/arnaud.ly
>
> but this gives me
> "error: unexpected post-event".
>
> So I've come up with this function :
>
> ti =
> #(define-music-function (parser location button) (string?)
> (if cadb
> #{
> \markup
> \override #'(direction . 0)
> \fontsize #-1.5 #button
> #}
> #{
> \markup
> \override #'(direction . (rang button))
> \underline \fontsize #-1.5 #(touchnum button)
> #}))
>
> but I'm still stuck with another error :
>
> error: music function cannot return \markup \override #'(direction rang
> button) \underline \fontsize #-1.5 "3"
>
> Herewith is a tiny example that shows the problem.
>
> TIA, cheers,
> Pierre
>
>
>
> _______________________________________________
> lilypond-user mailing list
> [hidden email]
> https://lists.gnu.org/mailman/listinfo/lilypond-user
>
> arnaudEssai.ly (1K) Download Attachment
> ~Pierre
>
>
> If you reply to this email, your message will be added to the discussion
> below:
> http://lilypond.1069038.n5.nabble.com/Markup-convert-to-v2-18-v2-19-generate-error-tp168787.html
> To start a new topic under User, email ml-node+s1069038n...@n5.nabble.com
> To unsubscribe from Lilypond, click here.
> NAML
--
View this message in context:
http://lilypond.1069038.n5.nabble.com/Markup-convert-to-v2-18-v2-19-generate-error-tp168787p168788.html
Sent from the User mailing list archive at Nabble.com.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user