hi
I wanted to list available midi output devices
In the documentation I can see static get_available_midi_output_devices
() → enumerate (Returns an enumeration of available ports and devices for midi output.)
but I don’t know how to access the enumeration so I can see the devices.
any help gratefully received
Chris
just answered my own question!
print(s.print_available_midi_output_devices())
You don’t actually need the outer print
, since print_available_midi_output_devices
already prints it!
Also, for anyone curious about how to use get_available_midi_output_devices
, here’s an example:
from scamp import *
for port, device_name in get_available_midi_output_devices():
print(port, device_name)