Ah, thanks. This here language that Lilypond uses... I understand it's used in other things. What's it called, and do you know of any good tutorial/information sites?

Thanks for your help,
Stewart

----- Original Message ----- From: "Nicolas Sceaux" <[EMAIL PROTECTED]>
To: "Stewart Holmes" <[EMAIL PROTECTED]>
Cc: <[email protected]>
Sent: Thursday, August 17, 2006 7:17 PM
Subject: Re: Markup macro?


"Stewart Holmes" <[EMAIL PROTECTED]> writes:

Thanks for the help Nicolas & Kieren. I've got the following:

fingerSwitch = #(define-music-function (parser location text) (string?)
 (make-music 'SequentialMusic 'elements
  (list
   (make-music 'EventChord 'elements
    (list
     (make-music
      'TextScriptEvent
      'text
      (markup #:line (#:finger $text))
     )
    )
   )
  )
 )
)

c4-\fingerSwitch "5"

but the error I get is that $text is an unbound variable. Since I
don't really know much what I'm doing, I thought I'd ask for your help
again.

Use "$variable" only inside a #{ #} expression. When in plain scheme,
just use "variable", without $.
And the music function should only return the TextScriptEvent part.

fingerSwitch =
#(define-music-function (parser location text) (string?)
 (make-music 'TextScriptEvent
  'direction 1
  'text (markup #:finger text)))



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

Reply via email to