]> git.donarmstrong.com Git - lilypond.git/blobdiff - scm/c++.scm
remove spurious else
[lilypond.git] / scm / c++.scm
index 8f4986a257ba72fe1ef0cefba10f792062cb2c6f..ec54ed28c9ebb9c57542154356958d14acd30fce 100644 (file)
   (and (pair? x)
        (number? (car x)) (number? (cdr x))))
 
+(define-public (number-pair-list? x)
+  (and (list? x)
+       (every number-pair? x)))
+
 (define-public (fraction? x)
   (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)))