Thanks Jan. So I revised my code, and now it works. For the sake of somebody else who might someday struggle with a similar thin, Here's a working code fragment.
#(def-markup-command (markup-dot paper props radius) (number?) "Syntax: \\markup-dot dot-radius eg: \\markup-dot #0.25 for dot with 1/2 staff space diameter" (ly:make-stencil (list 'dot 0 3 radius) (cons radius radius) (cons radius radius) ) ) \score { \notes { c''2.^\markup \markup-dot #0.5 } } Thanks for your help. I think now I can put together a simple chord diagram -- we'll see! Carl -----Original Message----- From: Jan Nieuwenhuizen [mailto:[EMAIL PROTECTED] Sent: Thursday, April 15, 2004 11:15 AM To: Carl D. Sorensen Cc: [EMAIL PROTECTED] Subject: Re: Help on markups 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 <[EMAIL PROTECTED]> | GNU LilyPond - The music typesetter http://www.xs4all.nl/~jantien | http://www.lilypond.org _______________________________________________ Lilypond-devel mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/lilypond-devel