MidiToText : EventDispatcher instance has no attribute 'sysex_events'
Max M
maxm at mxm.dk
Sun Jan 1 17:11:52 EST 2006
Carsten Haese wrote:
> On Fri, 2005-12-30 at 09:52, tim wrote:
>
>>Trying to convert midi to text using MidiToText.py.
>>I get the following:
>>
>>midi_port: 0
>>Traceback (most recent call last):
>> File "MidiToText.py", line 176, in ?
>> midiIn.read()
>> File "C:\Python24\Lib\site-packages\midi\MidiInFile.py", line 24, in read
>> p.parseMTrkChunks()
>> File "C:\Python24\Lib\site-packages\midi\MidiFileParser.py", line 167,
>>in parseMTrkChunks
>> self.parseMTrkChunk() # this is where it's at!
>> File "C:\Python24\Lib\site-packages\midi\MidiFileParser.py", line 129,
>>in parseMTrkChunk
>> dispatch.sysex_events(sysex_data)
>>AttributeError: EventDispatcher instance has no attribute 'sysex_events'
>
>
> Try changing "def sysex_event(self, data):" in
> ...\midi\EventDispatcher.py to "def sysex_events(self, data):"
Or just do a search and replace on the whole package::
search: sysex_events(
replace: sysex_event(
Apparently I have been inconsistent in my naming.
New version at:
http://www.mxm.dk/products/public/pythonmidi/download
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
More information about the Python-list
mailing list