Midi Remote - selecting multiple tracks

hi ,

i have a virtual midi driver that i manipulate programatically via websockets and a midi remote js ..

is there a way i can selected multiple tracks via midi remote ?

function selectTracks(tracks) {

console.log(JSON.stringify(tracks));

var mixerID = editableMixer.getBaseObjectID(deviceMapping);

var numOfChildren = editableMixer.getNumberOfChildObjects(deviceMapping, mixerID)

for (var i = 0; i < tracks.length; i++) {

    for (var j = 0; j < numOfChildren; j++) {

        var childID = editableMixer.getChildObjectID(deviceMapping, mixerID, j)

        var childTitle = editableMixer.getObjectTitle(deviceMapping, childID)

        if (childTitle == tracks\[i\].Name) {

            editableMixer.setParameterProcessValue(deviceMapping, childID, parameterTags.Selected, 1.0);

        }

    }

}

}

this works but will only select the last track in the received array …

i could use PLE - but i want to dynamically select tracks

Thanks. (Cubase 15, Windows 11)

Exactly.

Here’s a trick: You can use a PLE for setting your tracks to selected when their name contains a prefix/suffix. Before calling it, iterate through the list of the tracks you want inside the script, and alter their names to contain this prefix/suffix. Then you need a second PLE called at the post-process of the first PLE to remove this prefix/suffix. If you don’t want this second PLE, you can give some delay in your script after the execution of the first one, and then re-iterate through your tracks to remove this string.

thanks m.c

i can do that , but i guess my question is , is there ANY way to select multiple tracks via a midi command. ?

I suspect the answer is no, seems like a glaring oversight , if not!

Thanks, David

Correct. At least not one that I know of.