X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=scm%2Fto-xml.scm;h=7e2ba0caab794077f5d8e17b6b2ec07618f1d988;hb=746a2c1458c0b28f1a73cd3f94b4ed1342433129;hp=409247d0a554963bb2c52cdd379a22bd12739f43;hpb=847cf8c8c7212c384b56a7aa09e98de3ffef1714;p=lilypond.git diff --git a/scm/to-xml.scm b/scm/to-xml.scm index 409247d0a5..7e2ba0caab 100644 --- a/scm/to-xml.scm +++ b/scm/to-xml.scm @@ -2,7 +2,7 @@ ;;;; ;;;; source file of the GNU LilyPond music typesetter ;;;; -;;;; (c) 2003--2006 Han-Wen Nienhuys +;;;; (c) 2003--2009 Han-Wen Nienhuys ;;;; Jan Nieuwenhuizen (define-module (scm to-xml)) @@ -89,19 +89,6 @@ is then separated. (numer . ,(car (ly:duration-factor d))) (denom . ,(cdr (ly:duration-factor d)))))) -(define (musicxml-pitch->xml-node p) - (make - #:name 'pitch - #:children - (list - (make - #:name 'step - #:value (list-ref '("C" "D" "E" "F" "G" "A" "B") - (ly:pitch-notename p))) - (make - #:name 'octave - #:value (number->string (ly:pitch-octave p)))))) - (define (pitch->xml-node p) (make #:name 'pitch @@ -235,7 +222,7 @@ is then separated. (define-public (music-to-xml music port) "Dump XML-ish stuff to PORT." - ;; dtd contains # -- This confuses tex during make web. + ;; dtd contains # -- This confuses tex during make doc. ;; ;; (display (dtd-header) port) @@ -246,11 +233,10 @@ is then separated. (define-public (music-to-musicxml music port) "Dump MusicXML-ish stuff to PORT." - ;; dtd contains # -- This confuses tex during make web. + ;; dtd contains # -- This confuses tex during make doc. ;; ;; (display (dtd-header) port) - (define pitch->xml-node musicxml-pitch->xml-node) (define duration->xml-node musicxml-duration->xml-node) (display (open-tag 'music '((type . score)) '()) port)