That is much cleaner: building the document, and dumping it to output
is then separated.
+
+ foo = \score { ... }
+
+ #(as-xml foo)
+
+ <score>
+ <music></music>
+ <paperoutput>
+ </paperoutput>
+ </score>
+
+
+
"
(ignore-props '(origin elements duration pitch element))
)
+ ;; As almost everything is music; <SequentialMusic> is
+ ;; probably better than <music type="SequentialMusic">?
+
(display (open-tag 'music (cons `(type . ,name) mprops) ignore-props)
port)
(if (duration? d)