[Top][All Lists]

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

Defining a markup text using Scheme

From: Caio Giovaneti de Barros
Subject: Defining a markup text using Scheme
Date: Mon, 20 Jul 2015 18:12:21 -0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0


I'm trying to build a function that creates a circled text of my choice using \markup and a bit of Scheme. So far what I have is:

circled = #(define-music-function (parser location txt) (string?)

#{ \markup { \circle #txt } #})

\relative c' { c \circled #"1" }

But when I run it with Lilypond 2.19.23 I get:

In _expression_ (value->lily-string m):

/home/caio/lilypond/usr/share/lilypond/current/scm/ly-syntax-constructors.scm:33:14: Unbound variable: value->lily-string

Version 2.18.2 gives me:

music function cannot return (#<procedure line-markup (layout props args)> ((#<procedure circle-markup (layout props arg)> 1)))

\relative c' { c
\circled #"1" }

What am I doing wrong?
Caio G. de Barros

reply via email to

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