]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add string-or-music? predicate
authorDavid Kastrup <dak@gnu.org>
Wed, 26 Sep 2012 12:49:52 +0000 (14:49 +0200)
committerDavid Kastrup <dak@gnu.org>
Fri, 5 Oct 2012 08:47:49 +0000 (10:47 +0200)
scm/c++.scm
scm/lily.scm

index ded5e9b1209bc0c0be4627db018962d7196eb0f1..444a3e9ba6534b9201c26937785bcbb4fc9e6a5d 100644 (file)
@@ -57,6 +57,9 @@
 (define-public (string-or-pair? x)
   (or (string? x) (pair? x)))
 
+(define-public (string-or-music? x)
+  (or (string? x) (ly:music? x)))
+
 (define-public (number-or-pair? x)
   (or (number? x) (pair? x)))
 
index 9bc04dbddf085f646046893197dd0f11e17dd918..3ee924a1b1c44c429e635156416d8789af7a74de 100644 (file)
@@ -505,6 +505,7 @@ messages into errors.")
     (,rhythmic-location? . "rhythmic location")
     (,scheme? . "any type")
     (,string-or-pair? . "string or pair")
+    (,string-or-music? . "string or music")
     (,string-or-symbol? . "string or symbol")
     (,void? . "void")
     ))