Setting primary device - Navigating devices

Post Reply New Topic
RELATED
PRODUCTS

Post

Hi Guys,

So the following allows me to switch devices in the immediate chain:

Code: Select all

this.primaryDevice.switchToDevice(DeviceType.ANY,ChainLocation.PREVIOUS);
this.primaryDevice.switchToDevice(DeviceType.ANY,ChainLocation.NEXT);

I can also use a cursorDevice to select various parts of the total chain.

How can I set the current selected cursor to be the primary device?

I have noticed in come of the 1.1 beta notes that there is a named "Primary" cursor available somehow, is this what I need to be using? If so how the hell do I get it?

Thanks for any help as I'm banging my head against the wall here.

Cheers

Andy

Post

Up to my knowledge that is currently not possible. The problem is that you can not find out "where" the primary or current device is located.
I already suggested some improvements to Bitwig to make such things work. Might be in one of the upcoming updates.

Post

Hi Moss,

Thanks for the info.

The whole PrimaryDevice thing seems pretty disjointed to me.

While I have you maybe you could help me with another issue:

In order to 'change' to the primary device on a new channel I seem to have to use a cursorTrack from host.createCursorTrackSection to select the tracks. In order to get at the Sends for a track I need a trackBank from host.createMainTrackBankSection. I can scroll through these tracks by updating both:

Code: Select all

this.trackBank.scrollTracksUp();
this.cursorTrack.selectPrevious();
But if the user selects a track in the app then my cursor and the trackBank are now offset, how do I keep then synced?

Cheers

Andy

Post

If you use a CursorTrack you need to add your observers to its primary device.
If you use a TrackBank you need to register your primary device observers to all of the tracks of the bank!

Post

Nice one Moss, thanks for that.

Post Reply

Return to “Controller Scripting”