-
Notifications
You must be signed in to change notification settings - Fork 69
Description
Hi
when running the midioutwrapper.py example, it fires:
traceback (most recent call last):
File "midioutwrapper.py", line 19, in <module>
from rtmidi.midiconstants import (ALL_NOTES_OFF, ALL_SOUND_OFF, BALANCE, BANK_SELECT_LSB,
ImportError: cannot import name 'MODULATION' from 'rtmidi.midiconstants' (C:\Program Files (x86)\Python37-32\lib\site-packages\rtmidi\midiconstants.py)
Indeed the constant: "MODULATION" isn't defined unter: midiconstants.py. I guess you mean here: "MODULATION_WHEEL"
By the way, after replacing: "MODULATION" by "MODULATION_WHEEL", i got:
Traceback (most recent call last):
File "midioutwrapper.py", line 230, in <module>
with mout.open_virtual_port():
File "src\_rtmidi.pyx", line 613, in rtmidi._rtmidi.MidiBase.open_virtual_port
NotImplementedError: Virtual ports are not supported by the Windows MultiMedia API.
So, I guess you better use the following call instead:
mout, in_port = midiutil.open_midioutput()
Or at least detect if you are using windows, then call the right function.
Anyway, after having done those changes, I'm using both: midioutwrapper.py and midiin_callback.py together with the virtual ports defined by a software called Bome Translator, but the midiin_callback.py script doesn't captures anything sent by the midioutwrapper.py script. Is this perhaps a problem with the Windows MIDI implementation?
Best regards
Josef