Dan Eble <[email protected]> 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 _______________________________________________ lilypond-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-devel
