More than 8 knobs on a remote control page?

RELATED
PRODUCTS

Post

Really? What did I win? ;-)

Great you got it working. The API is a total mess and while I no longer do much scripting, I just happened to read your topic by accident and knew the answer was yes...

Best of luck!

Tom
"Out beyond the ideas of wrongdoing and rightdoing, there is a field. I’ll meet you there." · Rumi
UrbanFlow.art · Instagram · YouTube

Post

<3 it appears many of us couldn't figure out how to make it happen so I think you win smiles on peoples faces. At least a big one on mine. :) cheers Thomas!
---------------------------------------------------------------
http://kirkwoodwest.com/

Post

I swear i had this working a couple months ago on my bcr2000 script. but for now I can't seem to use selectedPageIndex().set() on the cursorRemoteControlsPage

doesn't seem to be doing anything here anymore. I'm wondering if it has to do with some changes in the API...

cursorRemoteControlsPage.pageNames() is also returning a strange value: Ljava.lang.String;@68e4b3e2

and if i check the length of it...for my test... cursorRemoteControlsPage.pageNames.pageNames().get().length it is 14. So its the proper length.

I'm a little hesitant to show the actual code because I don't want to waste anyones time with that. but maybe there is something i'm missing.
----------------------------------------------------------------------
/CTRL → http://slashctrl.io
Music & mixes → http://soundcloud.com/kirkwoodwest

Post

cursorRemoteControlsPage.pageNames() returns an array/object/collection thingy with the names IIRC. That stuff shows silly names often.
Do you look for the individual name of a page?

The selectedPageIndex worked for me the last time I tried - not at home ATM so can't check, sorry.

Cheers,

Tom
"Out beyond the ideas of wrongdoing and rightdoing, there is a field. I’ll meet you there." · Rumi
UrbanFlow.art · Instagram · YouTube

Post

I only get this reliably to work by matching the page tags, the name of the page seem not to be relevant. Each page needs to have just one unique tag for example the first page "1", the second page "2", etc... then in software you can access all pages like this:

Code: Select all

CursorRemoteControlsPage page1 = device.createCursorRemoteControlsPage("_", 8, "1");
CursorRemoteControlsPage page2 = device.createCursorRemoteControlsPage("_", 8, "2");
...

Post

nice solution for that Heins!

Somehow I made a stripped down version to get it to work... and then building back from there.

key part was to have this:

Code: Select all

remoteControlsBank.pageNames().addValueObserver(pageNamesChanged));
and then reset the index:

Code: Select all

RemoteControlHandler.prototype.pageNamesChanged = function(){
   page_names = this.remoteControlsBank.pageNames().get();
   index = 0;
   if (this.page_index < page_names.length) index = this.page_index;
   this.remoteControlsBank.selectedPageIndex().set(this.page_index);
}
----------------------------------------------------------------------
/CTRL → http://slashctrl.io
Music & mixes → http://soundcloud.com/kirkwoodwest

Post

[edited]
Nevermind, I will try again... and might come back later for help :wink:
Last edited by solyon on Fri Sep 04, 2020 9:54 pm, edited 1 time in total.

Post

heins wrote: Mon Jul 27, 2020 7:48 pm I only get this reliably to work by matching the page tags, the name of the page seem not to be relevant. Each page needs to have just one unique tag for example the first page "1", the second page "2", etc... then in software you can access all pages like this:

Code: Select all

CursorRemoteControlsPage page1 = device.createCursorRemoteControlsPage("_", 8, "1");
CursorRemoteControlsPage page2 = device.createCursorRemoteControlsPage("_", 8, "2");
...
Damn! It worked!! I did not believe it anymore :pray: :hug:
Now I will also try to implement the Kirkwood West solution :wink:

Post

hydrogxn wrote: Sat Apr 11, 2020 12:29 am
Tj Shredder wrote: Thu Apr 09, 2020 9:52 pm He has a controller with 16 knobs/encoders...
That should be possible: if moved knob is part of the first collection switch to the first, if knob is part of the second collection switch to the second bank...
right that would be cool but what if you wanted to control both banks at the same time? probably not possible :(

This is what I'm up against right now. Trying to figure this out to map the BCR2000 to the first 4 pages of the device presets.

and to go even further... i'm really just wanting the first 4 knobs of each of the first 8 pages in the device presets. Will see if its possible.

For my first test i'm just trying to get it working with multiple remoteControls and cursorDevices. So far it seems it seems like the CursorRemoteControlsPage.selectedPageIndex() is not unique per cursorDevice! so I'm at a loss here.

i've also tried making a very large control page... cursorDevice.createCursorRemoteControlsPage(32) but it doesn't seem to extend past the first page so its unhelpful as well...
Did you achieve something else for the BCR2000??

Post Reply

Return to “Controller Scripting”