]> git.donarmstrong.com Git - lilypond.git/commit
midi2ly: open midi input file in binary mode. Fixes #834.
authorJan Nieuwenhuizen <janneke@gnu.org>
Wed, 19 May 2010 13:53:14 +0000 (15:53 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Wed, 19 May 2010 13:53:29 +0000 (15:53 +0200)
commit66dd932f6519b7913400a838c5efbc5407e06cd8
treeea9fa2dbe183f1b572a64270c0385abff89461d4
parent123c7f445c6cacbf2f1b9e7b2e38539568af54c0
midi2ly: open midi input file in binary mode.  Fixes #834.

After some GUB python hacking I decided the problem was not in Python
but in midi.c.  Then it was easy, I printed the midi_dump

    midi_dump = midi.parse (str)

in wine and compared that with the Linux one

    wine: ((1, 960), [])
    linux: ((1, 960), [[(0, (255, 88, '\x04\x02\x18\x08')), (0, [..]

and then printed the input STR to that function

    wine: string:>>> MThd
scripts/midi2ly.py