On Wed, 17 Aug 2016 14:15:02 +0200 David Kastrup <d...@gnu.org> wrote:
> Well, musicxml2ly.py presumably also generates a \version header, and > running convert-ly on the resulting file possibly fixes a number of > those problems (even though it complicates the rules, the change to let > c:5 exclude the third was introduced as late as version 2.19.28). $ /usr/bin/musicxml2ly minor.xml musicxml2ly: Reading MusicXML from minor.xml ... musicxml2ly: Converting to LilyPond expressions... musicxml2ly: Output to `minor.ly' musicxml2ly: Converting to current version (2.19.45) notations ... As you can see from the last line, musicxml2ly runs convert-ly. The \version of the generated minor.ly is \version "2.19.45" > Nevertheless it seems like a good idea to change musicxml2ly.py to > generate output compatible with both older and newer versions. Patch attached. I don't know what to do with the major-minor chord. -- Johan
--- /usr/bin/musicxml2ly 2016-07-11 05:38:00.000000000 +0200 +++ musicxml2ly 2016-08-16 23:16:59.894187641 +0200 @@ -1620,10 +1620,10 @@ return r chordkind_dict = { - 'major': r'{}:5', - 'minor': r'{}:m5', - 'augmented': r'{}:aug5', - 'diminished': r'{}:dim5', + 'major': r'{}', + 'minor': r'{}:m', + 'augmented': r'{}:aug', + 'diminished': r'{}:dim', # Sevenths: 'dominant': r'{}:7', 'dominant-seventh': r'{}:7', @@ -1631,7 +1631,7 @@ 'minor-seventh': r'{}:m7', 'diminished-seventh': r'{}:dim7', 'augmented-seventh': r'{}:aug7', - 'half-diminished': r'{}:dim5m7', + 'half-diminished': r'{}:m7.5-', 'major-minor': r'{}:maj7m5', # Sixths: 'major-sixth': r'{}:6',
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user