You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I couldn't get the first example to work, but I modified it and it achieves the objective:
import rtmidi
midiin = rtmidi.MidiIn()
midiin.ignore_types(sysex=False, timing=True, active_sense=True)
ports = range(midiin.get_port_count())
if ports:
for i in ports:
print(midiin.get_port_name(i))
print("Opening port 1!")
midiin.open_port(1)
while True:
m = midiin.get_message()
if m:
print(m)
else:
print('NO MIDI INPUT PORTS!')
The text was updated successfully, but these errors were encountered:
a bit late but I think that what's happening is that both pyrtmidi and python-rtmidi use the same module name rtmidi. Per the syntax you use in your modified example, what you have installed is python-rtmidi, not pyrtmidi
I couldn't get the first example to work, but I modified it and it achieves the objective:
The text was updated successfully, but these errors were encountered: