superquadratic / rtmidi-python

Python wrapper for RtMidi
MIT License
56 stars 2 forks source link

Python crashing on open_port() #13

Closed lucasloisp closed 9 years ago

lucasloisp commented 10 years ago

I have my midi keyboard connected via USB, and it is shown when I run

for port_name in midi_out.ports:
    print port_name

Out->
Microsoft GS Wavetable Synth
CASIO USB-MIDI

However, I can't seem to connect to it via midi_out.open_port(0) as it crashes instantly

MidiOutWinMM::sendMessage: error sending MIDI message.

terminate called after throwing an instance of 'RtError'
  what():  MidiOutWinMM::sendMessage: error sending MIDI message