]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/c++.scm
Completion_*_engraver: add means to preserve scale factor; issue 3650
[lilypond.git] / scm / c++.scm
index a131e7f3428d95870bcc3ec05b1643fe7d899552..ec54ed28c9ebb9c57542154356958d14acd30fce 100644 (file)
   (and (pair? x)
        (index? (car x)) (index? (cdr x))))
 
+(define-public (rational-or-procedure? x)
+  (or
+   (and (rational? x) (exact? x))
+   (procedure? x)))
+
 (define-public (number-or-grob? x)
   (or (ly:grob? x) (number? x)))