i`m currently setting up a cliplauncher for Bitwig via OSC, but i cannot get my head around a solution.
The open API by Bitwig makes everything easier i think, still i would need some help.
I've read the manual and also searched in here to find ways, but didn`t find what i was looking for sadly.
Basically i got an 8x8 Clipgrid and i would like to use switches.
We got an observer in Bitwig wich sends out the clip colors in RGB.
For example:
darkgray: RGB(0.3294117748737335, 0.3294117748737335, 0.3294117748737335)
grey: RGB(0.47843137383461, 0.47843137383461, 0.47843137383461)
lightgrey: RGB(0.7882353067398071, 0.7882353067398071, 0.7882353067398071)
greyblue: RGB(0.5254902243614197, 0.5372549295425415, 0.6745098233222961)
whenever i change the color of a clip i can receive the value in Lemur via:
/track/{1-8}/clip/{0-7}/color
I can monitor what Bitwig exactly puts out with the monitor modul, so i got a list of 30 different colors like that above wich i want to use.
Questions:
1. Can i set up a switch to change its color by any color from RGB range wich is sent out by Bitwig?
2. Or do i need to make a multiline script onLoad (or onOSC ??) telling the switch, that these exact colors could arrive, and that it should then change its color according to it.
I´ve set up a little script i found in the forum but it just colors the object in the first color of the array: This is execution onLoad.
Code: Select all
decl color_array= {RGB(0.3294117748737335, 0.3294117748737335, 0.3294117748737335),RGB(0.47843137383461, 0.47843137383461, 0.47843137383461)};
setattribute(Switches65,'colors',color_array);
If you could show me how to do such a think, it would be great!
thanks
Mark