How to move clip indication (bank)

Post Reply New Topic
RELATED
PRODUCTS

Post

Hi.

I am working an script for the Launchkey 61 Mk3, but I am stuck with the bank indication.
By searching here and there, I write this following code for the api version 12 :

Code: Select all

switch(button)	{
		case previousTrack:	trackBank.scrollBackwards(); break;
		case nextTrack:		trackBank.scrollForwards(); break;
}
with:

Code: Select all

trackBank = host.createTrackBank(8 /* num tracks */, 0 /* num sends */, 2 /* num scenes*/);
No error is returned from Bitwig, but the bank indication didn't move a yota.
Someone now how to do this little thing ?

A second question.
On previous API version exist specific functions to move the clip bank "up" and "down", and "right" and "left". Now exist only "scrollBackwards()" and "scrollForwards()", how to move the clip bank indication in 4 directions ?

Post

Frac-Capitaine wrote: Sun Dec 13, 2020 5:26 pm with:

Code: Select all

trackBank = host.createTrackBank(8 /* num tracks */, 0 /* num sends */, 2 /* num scenes*/);
Yo doggie. Get the SceneBank From the track bank.

Code: Select all

trackBank = host.createTrackBank(8 /* num tracks */, 0 /* num sends */, 2 /* num scenes*/);
sceneBank = trackBank.sceneBank()
Then you got all sorts of things to use with that.

Code: Select all

Scene 	getScene (int indexInBank)
void 	scrollPageUp ()
void 	scrollPageDown ()
void 	scrollUp ()
void 	scrollDown ()
void 	scrollTo (int position)
void 	addScrollPositionObserver (IntegerValueChangedCallback callback, int valueWhenUnassigned)
void 	addCanScrollUpObserver (BooleanValueChangedCallback callback)
void 	addCanScrollDownObserver (BooleanValueChangedCallback callback)
void 	addSceneCountObserver (IntegerValueChangedCallback callback)
void 	launchScene (int indexInWindow)
void 	setIndication (boolean shouldIndicate)
----------------------------------------------------------------------
/CTRL → http://slashctrl.io
Music & mixes → http://soundcloud.com/kirkwoodwest

Post

Thanks. It work great !

Post Reply

Return to “Controller Scripting”