lilypond-devel
[Top][All Lists]
Advanced

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

Re: Help on markups


From: Jan Nieuwenhuizen
Subject: Re: Help on markups
Date: Thu, 15 Apr 2004 20:14:58 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

Carl D. Sorensen writes:

> So I wrote the following markup definition:
>
> #(def-markup-command (chord-diagram paper props chord-string) (string?)
>   "Syntax: \\chord-diagram diagram-string
>    eg: \\chord-diagram #\"x32010\" to achieve standard C chord"
>     (interpret-markup paper props (markup (dot 0 0 3)))
>   )

A good effort with an understandable mistake.  You cannot use (dot )
directly, the interface functions in output-*.scm are output commands
for `Stencil's with that name.

So, you'll have to make a 'dot' stencil.  How to do that?  Use
ly:make-stencil.  See, eg, scm/stencil.scm: 

   (define-public (make-filled-box-stencil xext yext)
     "Make a filled box."

     ..)

Good luck,

Jan.

-- 
Jan Nieuwenhuizen <address@hidden> | GNU LilyPond - The music typesetter
http://www.xs4all.nl/~jantien       | http://www.lilypond.org





reply via email to

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