[MIDI Remote API]Get All Track Names At Once Using Midi Remote Script?

Yes, I am changing mixer banks via another remote. That’s the reason that names are not updated except if I select any track of the active bank.
I have fixed this problem selecting the 1st track of the bank everytime the bank is changed though the second remote. It works and it’s also very useful, as I see highlighted the first track of the active bank.

Why do I am not handling character codes above 127? I don’t understand this…

Thanks a lot for the code, it’s better than the one I wrote! I am new with javascript and I find some statements hard to write/understand…

The charCodeAt can and will return a value above 127 when we have a character out of the default ASCII range. A sysEx message in MIDI 1 uses 7-bit (0-127) (With the exception of the first and last byte) so everything above this range will create trouble.

1 Like

Well noted, thanks for the explanation!

Note that you can have a midi remote with more than one pair of midi input/output ports. This can be handy in cases like this.

Ah, that can be very convenient, yes. How I do that?

Here’s an example:


var midiInput=deviceDriver.mPorts.makeMidiInput("midiInput")
var midiOutput=deviceDriver.mPorts.makeMidiOutput("midiOutput")

var midiInput2=deviceDriver.mPorts.makeMidiInput("midiInput2")
var midiOutput2=deviceDriver.mPorts.makeMidiOutput("midiOutput2")


var portDetection=deviceDriver.makeDetectionUnit()
portDetection.detectPortPair(midiInput,midiOutput)
    .expectInputNameEquals("midi input")
    .expectOutputNameEquals("midi output")

var portDetection2=deviceDriver.makeDetectionUnit()
portDetection2.detectPortPair(midiInput2,midiOutput2)
    .expectInputNameEquals("midi input 2")
    .expectOutputNameEquals("midi output 2")
2 Likes