lilypond-devel
[Top][All Lists]
Advanced

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

make-musicglyph-markup puzzle


From: Dan Eble
Subject: make-musicglyph-markup puzzle
Date: Fri, 7 Nov 2014 20:04:08 -0500

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)))))

Using this function as-is, there is a warning that no symbol is found, and no 
time signature of any kind is printed.  The code in master prints a numbered 
time signature if no symbol is found.  Is it worth trying to preserve the 
current behavior?

Thanks,
— 
Dan




reply via email to

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