[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make-musicglyph-markup puzzle
From: |
David Kastrup |
Subject: |
Re: make-musicglyph-markup puzzle |
Date: |
Sat, 08 Nov 2014 09:48:09 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Dan Eble <address@hidden> writes:
> I’m having trouble figuring out how to make this function fall back on
> another time signature style (make-simple-numbered-time-signature-markup
> fraction) if the requested glyph is not present.
>
> (define-public (make-glyph-time-signature-markup style fraction)
> (make-musicglyph-markup (string-append
> “timesig.”
> (symbol->string style)
> (number->string (car fraction))
> (number->string (cdr fraction)))))
That's probably not all that easy since a "markup" is just a sequence of
sort-of function calls producing stencils. And before the calls get
executed, the fonts in question are not yet known.
So you'll probably rather need to write
(define-markup-command (glyph-time-signature ...
since the code executed in _that_ definition is what is called at
stencil creation time.
--
David Kastrup