Expose the selected track name somewhere

Hello, I would love to be able to have access the current selected track name somewhere in the cubase remote api

thank you

page.mHostAccess.mTrackSelection.mOnTitleChange=function(activeDevice,activeMapping,title){
    //Selected Track's title is exposed here
}

thanks I’ll try, do you know if we can send to cubase a command with a midi remote script to select a track named “x” ?

What does “x” stand for? Is it a constant name? Is it variable, one received from the controller? Implementation is the same, but before moving to it, it’s good to know the use case. For example, if it’s a constant name, you can always use a PLE for that, and bind a button in MIDI Remote to this PLE. If it’s not, then most probably there’s no real need to call for “x”. One can use mixerBankZone indexes for that. Generally, after 13.0.51, yes, totally doable, though.

x is a variable
usecase is I have a custom software where my template tracklist is organized like a browser with tags. I want to click on a track on my external software and automatically send a command to cubase to select the track that match the exact trackname

unrelated question but do you know if the midi remote also expose the expression map for the selected track, with either just the exmap ID or ideally the articulation name and their remote key

It does not.

I don’t know how you’ve implemented the populating process. A good practise is to send to your external app at least couples like [channelIndex,channelName] and then recall based on index. Looking up for just a track name is fragile, since a user may have multiple tracks with identical names. Anyway, in both cases, it’s doable, the straight forward way is to use the direct access object (CB 13.0.51 and above). If however you base your tracks on indexes, this is not needed, you can always use the mixerBankZone for that.

much appreciated, I will try. For a moment I thought that without having access to the private Steinberg cubase remote sdk it wasn’t possible to do all this

Plenty of things are accessible using this object. Try to log a bunch so that you can have a good idea of what is exposed. It’s “just” a tree of objects/child-objects/…/parameters.

using direct access I was able to get in real time the currently selected track in my software which is great news. I am now working on another proof of concept, sending a commande to cubase to select a specific track. I am trying your index idea, maybe building an index on app startup or having a button that trigger the index sync

I succeeded in both getting the track name and selection a track by name thank to you ideas.
I am facing now another hurdle, selecting a disabled track do not work. here is the console log