bug-lilypond
[Top][All Lists]
Advanced

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

RE: Problems setting circle-padding


From: Steven Weber
Subject: RE: Problems setting circle-padding
Date: Mon, 9 Jun 2008 15:35:29 -0700

Sure enough, that solved the problem!  However, now I'm hitting a new issue.
I'm trying to make a markup command that circles a string.  I started by
seeing what Lilypond generates:

{ \displayMusic { c'1 ^\markup { \override #'(circle-padding . 0.5) \circle
"Hi" } } }

Then copied that string to my definition:

#(define-markup-command (myCircle layout props name) (string?)
  "Print the name inside a circle.  Syntax:  \\myCircle #\"note\""
      (interpret-markup layout props
                (markup #:line (#:override (circle-padding . 0.5) (#:circle
"Hi")))))

When I try to call it { c'1 ^\markup { \myCircle #"Hi" } }, I get the
following error:

Preprocessing graphical objects...Test.ly:10:4: In expression
(circle-padding . 0.5):
Test.ly:10:4: Unbound variable: circle-padding

Any clue what's going on here, or why the exact string Lilypond claims to be
using internally doesn't work?

Thanks!

--Steven

-----Original Message-----
From: Neil Puttock [mailto:address@hidden 
Sent: Monday, June 09, 2008 3:10 PM
To: Steven Weber
Cc: address@hidden
Subject: Re: Problems setting circle-padding

Hi Steven,

2008/6/9 Steven Weber <address@hidden>:

> warning: cannot find property type-check for `circle-padding'
(backend-type?).
> perhaps a typing error?
> warning: doing assignment anyway

Circle-padding is a markup property only, so it's not designed for use
as an override with TextScript (even though it works despite the
type-check error).

> Here's the error with the second line:
> Preprocessing graphical objects...C:/Program
> Files/LilyPond/usr/share/lilypond/current/scm/define-markup-
> commands.scm:100:15: In procedure * in expression (* (magstep font-size)
> circle-padding):
> C:/Program Files/LilyPond/usr/share/lilypond/current/scm/define-markup-
> commands.scm:100:15: Wrong type: (0.5)

You're missing a full-stop/period in the markup \override command (it
takes a scheme pair):

\override #'(circle-padding . 0.5)

Regards,
Neil





reply via email to

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