Using CC to switch user pages of a device map?
- KVRAF
- Topic Starter
- 35297 posts since 14 Sep, 2002 from In teh net
If I have created a device map with more than one user page is there a way to add to the controller script to assign pages 1-8 to specific CC's? I can do this in Live but don't see how it's done in Bitwig scripting.
- KVRAF
- Topic Starter
- 35297 posts since 14 Sep, 2002 from In teh net
Apparently this is possible - the question is how to script it?
-
- KVRian
- 1482 posts since 19 Aug, 2009
- KVRAF
- Topic Starter
- 35297 posts since 14 Sep, 2002 from In teh net
The example scripts don't seem to do this and the third party ones I've looked at get too complex for me to understand
- KVRAF
- 4145 posts since 13 May, 2004
That's pretty simple:aMUSEd wrote:The example scripts don't seem to do this and the third party ones I've looked at get too complex for me to understand
1) Create a note input which filters for your MIDI CC (B0xxxx).
2) Create a remote control bank
3) If you receive the midi CC, select the page you want depending on the CC value.
4) Assign your knobs/faders to the 8 remote controls.
- KVRAF
- Topic Starter
- 35297 posts since 14 Sep, 2002 from In teh net
Thanks - not sure what you mean by remote control bank unless by 'bank' you mean what it means in Live which is user page?
Anyway found this code which shows how to scroll pages using note input but what I want is to map the 8 buttons of my Komplete Kontrol to the first 8 pages of a mapped device (already made those)
https://www.keithmcmillen.com/blog/cont ... io-part-7/
This is the script I'm using so far (just based on the default one)
https://www.dropbox.com/s/748mwedkbzh8o ... s.zip?dl=1
Anyway found this code which shows how to scroll pages using note input but what I want is to map the 8 buttons of my Komplete Kontrol to the first 8 pages of a mapped device (already made those)
https://www.keithmcmillen.com/blog/cont ... io-part-7/
This is the script I'm using so far (just based on the default one)
https://www.dropbox.com/s/748mwedkbzh8o ... s.zip?dl=1
- KVRAF
- 4145 posts since 13 May, 2004
It does exactly what I wrote. You only need to add to scroll up and down on the object "remoteControls".aMUSEd wrote:This is the script I'm using so far (just based on the default one)
https://www.dropbox.com/s/748mwedkbzh8o ... s.zip?dl=1
I suggest also to remove the "createUserControls", which is not really need anymore.
- KVRAF
- Topic Starter
- 35297 posts since 14 Sep, 2002 from In teh net
Cool thanks - so here?
}
What exactly do I need to add? (not familiar with scripting so pretty much winging it)
Code: Select all
remoteControls = cursorDevice.createCursorRemoteControlsPage(16);
for ( var i = 0; i < 16; i++)
{
var p = remoteControls.getParameter(i).getAmount();
p.setIndication(true);
p.setLabel("P" + (i + 1));
What exactly do I need to add? (not familiar with scripting so pretty much winging it)
- KVRAF
- Topic Starter
- 35297 posts since 14 Sep, 2002 from In teh net
Isn't this the part that tells it to map hardware knobs to the device controls though? Why would I want to take it out?
Code: Select all
userControls = host.createUserControls(HIGHEST_CC - LOWEST_CC + 1 - 16);
for ( var i = LOWEST_CC; i < HIGHEST_CC; i++)
{
if (!isInDeviceParametersRange(i))
{
var index = userIndexFromCC(i);
userControls.getControl(index).setLabel("CC" + i);
}
- KVRAF
- Topic Starter
- 35297 posts since 14 Sep, 2002 from In teh net
OK tried adding this but I just keep making it crashaMUSEd wrote:Cool thanks - so here?
}Code: Select all
remoteControls = cursorDevice.createCursorRemoteControlsPage(16); for ( var i = 0; i < 16; i++) { var p = remoteControls.getParameter(i).getAmount(); p.setIndication(true); p.setLabel("P" + (i + 1));
What exactly do I need to add? (not familiar with scripting so pretty much winging it)
Code: Select all
controlPageCursor.selectNextPage(true);
}
else if (cc = 22)
{
controlPageCursor.selectPreviousPage(true);
}
else if (cc = 23)
- KVRAF
- Topic Starter
- 35297 posts since 14 Sep, 2002 from In teh net
Well I've just hit a dead end with this, not getting anywhere