]> git.donarmstrong.com Git - lilypond.git/commit
MusicXML: Cleanup of span start/end and direction, coding style
authorReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 13 Sep 2007 21:09:58 +0000 (23:09 +0200)
committerReinhold Kainhofer <reinhold@kainhofer.com>
Thu, 13 Sep 2007 22:37:18 +0000 (00:37 +0200)
commitbc7dc27063eb6062ad56ec4cb5bf5d14f8550aa4
tree931055d833a9f9cc4796b69fd8a9c0828292ef6a
parent3e027eeb9e1052974372b390e08c0ce2e992bbbd
MusicXML: Cleanup of span start/end and direction, coding style

Follow Han-Wen's tips:

-) Split the type of spanners into direction (start/stop) and type
   (crescendo/decrescendo, up/down octave-shifts, ...)
-) Get rid of some ifs and use dicts instead
-) Get rid of unnecessary empty cases in dicts
-) Treat hairpins like all other spanners
-) Invert logic of quoting of lyrics and header fields to always quote unless
   the text consists entirely of letters.
-) Implement all durations from MusicXML
-) If an ouput filename is given, the include needs to use only the basename
   of the file, not the whole path
-) Change logic of adding .xml to the input file: First try the supplied
   filename, then with .xml appended and only then with xml (no dot) appended.
-) Use progress (..) for the error message when input file does not exist.

Signed-off-by: Reinhold Kainhofer <reinhold@kainhofer.com>
make/musicxml-vars.make
python/musicexp.py
python/musicxml.py
scripts/musicxml2ly.py