]> git.donarmstrong.com Git - lilypond.git/commitdiff
* python/musicxml.py (Accidental.__init__): new class.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 7 Dec 2005 12:46:30 +0000 (12:46 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 7 Dec 2005 12:46:30 +0000 (12:46 +0000)
* scripts/musicxml2ly.py (progress): new function
(musicxml_key_to_lily): don't barf on modeless keys.
(create_skip_music): new function.
(musicxml_spanner_to_lily_event): new function. Handle beams too.
(musicxml_note_to_lily_main_event): new function.

Documentation/user/converters.itely
python/musicxml.py
scripts/musicxml2ly.py

index 2e774821c25809536812012cb26a19c384d59388..f8b6f6c82f8b5ea8fcd28910eb5520cd41efca2b 100644 (file)
@@ -144,7 +144,7 @@ confuse @command{etf2ly}.  Sequences of grace notes are ended improperly.
 @node Invoking musicxml2ly
 @section Invoking @code{musicxml2ly}
 
-@uref{http://@/www.@/recordarde@/.com/xml/,MusicXML} is a XML dialect
+@uref{http://@/www.@/recordarde@/.com/xml/,MusicXML} is an XML dialect
 for representing music notation.
 
 @command{musicxml2ly} extracts the notes from part-wise MusicXML
index a1107f6bf09a055c4f60cdf051981d4d003a8da7..8886ecead00d2dcc2fb9674a9674bc7018992354 100644 (file)
@@ -237,7 +237,12 @@ class Time_modification(Music_xml_node):
                b = self.get_maybe_exist_typed_child (class_dict['actual-notes'])
                a = self.get_maybe_exist_typed_child (class_dict['normal-notes'])
                return (string.atoi(a.get_text ()), string.atoi (b.get_text ()))
-               
+
+class Accidental (Music_xml_node):
+       def __init__ (self):
+               Music_xml_node.__init__ (self)
+               self.editorial = False
+               self.cautionary = False
                
                
 class Tuplet(Music_xml_node):
@@ -272,6 +277,7 @@ class Grace (Music_xml_node):
 
 class_dict = {
        '#comment': Hash_comment,
+       'accidental': Accidental,
        'alter': Alter,
        'attributes': Attributes,
        'beam' : Beam,
index 4e5a39b2d838158aff34ddd4bae5e867fa673241..390a855727190e436a5cb5d65d943fcfb4e92646 100644 (file)
@@ -212,7 +212,6 @@ def musicxml_note_to_lily_main_event (n):
                if acc:
                        # let's not force accs everywhere. 
                        event.cautionary = acc.editorial
-                       print event, event.cautionary, event.ly_expression()
                
        elif n.get_maybe_exist_typed_child (musicxml.Rest):
                event = musicexp.RestEvent()