lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: markup function


From: Noeck
Subject: Re: markup function
Date: Sun, 06 Jan 2013 00:33:07 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0

> It might make sense to look in the Guile manual for string operations.
> Other than that, check out the notation manual for a description of
> available markup commands (like \concat).

I know concat, but it did not work here. For the \with-url command I
need to replace the #"http" which is somehow different from the "text":
\with-url #"http" "text"
For the text part, \concat would work but for the http part I tried all
combinations of # and $ but I always got scheme errors.

How can I use scheme functions within lilypond code inside #{ #}?

I tried this:

#(define-markup-command (myfunction layout props link text)
(markup? markup?)
  "Comment."
  (interpret-markup layout props
    #{\markup \with-url #(string-append #"http" #link) #text #}))

Cheers,
Joram



reply via email to

[Prev in Thread] Current Thread [Next in Thread]