]> git.donarmstrong.com Git - lilypond.git/commitdiff
incipit.ly: combine Scheme expressions
authorDavid Kastrup <dak@gnu.org>
Wed, 19 Oct 2011 19:52:57 +0000 (21:52 +0200)
committerDavid Kastrup <dak@gnu.org>
Wed, 19 Oct 2011 20:06:36 +0000 (22:06 +0200)
input/regression/incipit.ly

index ad25f3a7cf299396a6eaf9f7554f89242db0f26b..1d5de3a04b770b50bdb3b7551b0342523d79b53f 100644 (file)
@@ -6,14 +6,15 @@ grob."
 }
 
 %% to prevent warnings/programming errors:
-#(set-object-property! 'music 'backend-type? ly:music?)
-#(set-object-property! 'music 'backend-doc "Incipit music")
-#(ly:add-interface 'incipit-interface "An incipit." '(music))
-#(let* ((instrument-def (assoc 'InstrumentName all-grob-descriptions))
-        (meta-def (assoc 'meta (cdr instrument-def)))
-        (interfaces-def (assoc 'interfaces (cdr meta-def)))
-        (interfaces (cdr interfaces-def)))
-   (set-cdr! interfaces-def (cons 'incipit-interface interfaces)))
+#(begin
+   (set-object-property! 'music 'backend-type? ly:music?)
+   (set-object-property! 'music 'backend-doc "Incipit music")
+   (ly:add-interface 'incipit-interface "An incipit." '(music))
+   (let* ((instrument-def (assoc 'InstrumentName all-grob-descriptions))
+         (meta-def (assoc 'meta (cdr instrument-def)))
+         (interfaces-def (assoc 'interfaces (cdr meta-def)))
+         (interfaces (cdr interfaces-def)))
+     (set-cdr! interfaces-def (cons 'incipit-interface interfaces))))
 
 \score {
   \new Staff {
@@ -59,4 +60,4 @@ grob."
     indent = 5\cm
     incipit-width = 3\cm
   }
-}
\ No newline at end of file
+}