lilypond-user
[Top][All Lists]
Advanced

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

Re: scheme: problem with variable and value


From: Timothy Lanfear
Subject: Re: scheme: problem with variable and value
Date: Fri, 20 Sep 2024 20:28:02 +0100
User-agent: Mozilla Thunderbird


On 20/09/2024 20:20, K. Blum wrote:
\version "2.24.3"

#(define-markup-command (dosomething layout props text) (markup?)
   (let* ((myvalue 1))
     (interpret-markup
      layout props
      ; (markup #:override '(box-padding . 1) #:box text))   ; works
      (markup #:override '(box-padding . myvalue) #:box text))   ; doesn't work
     ))

\markup \dosomething "blah"

You need

(markup #:override `(box-padding . ,myvalue) #:box text)

-- 
Timothy Lanfear, Bristol, UK.

reply via email to

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