- divisions = 0
- midiNotes, durations, lyrics = [], [], []
-
- for measureNode in leadPart.getElementsByTagName('measure') :
- divisions = int(_getNodeValue(measureNode, 'attributes/divisions', divisions))
- for noteNode in measureNode.getElementsByTagName('note') :
- note = Note(noteNode, divisions)
- if printNotes :
- print note.name, note.midi, note.duration, note.lyric
- midiNotes.append(note.midi)
- durations.append(note.duration)
- lyrics.append(note.lyric)
-
- song = Song(None,
- midiNoteNumbers = midiNotes,
- noteLengths = durations,
- lyrics = lyrics,
- notesInExtendedScale=None)
- song.save(output)
+# divisions = 0
+# midiNotes, durations, lyrics = [], [], []
+#
+# for measureNode in leadPart.getElementsByTagName('measure') :
+# divisions = int(_getNodeValue(measureNode, 'attributes/divisions', divisions))
+# for noteNode in measureNode.getElementsByTagName('note') :
+# note = Note(noteNode, divisions)
+# if printNotes :
+# print note.name, note.midi, note.duration, note.lyric
+# midiNotes.append(note.midi)
+# durations.append(note.duration)
+# lyrics.append(note.lyric)
+#
+# song = Song(None,
+# midiNoteNumbers = midiNotes,
+# noteLengths = durations,
+# lyrics = lyrics,
+# notesInExtendedScale=None)
+# song.save(output)