I’ve searched the forum, looked through all the example patches, and read the documentation and still can’t quite get my head around this one. Is there a way to query and assign the list of available midi devices directly from js without having to actually create a midiinfo object and bang it?
var mididevices = max.midilist;
then mididevices.length returns zero.
I’m sure that I’m missing something relatively simple; would love to know whether this is possible.
Prints the names of all current MIDI devices in the Max window.
Yeah, I’d hoped that doing this in JS would allow me to assign the list of devices rather than simply posting it.
What I’d like to do is match an argument to the js object to a string in the list of midi devices to determine whether a given output device is connected, then send it a predetermined sequence of raw midi data (sysex and ccs) stored in either a coll or a dict for initialization.
I like JS for setting up the initial conditions for a patch, so I’d hoped to find some js-specific equivalent to banging the inlets of midiinfo. Obviously I can just script midiinfo into being and destroy it when I’m done with it, but I was hoping for a more elegant solution.