So far I found some work arounds to store this data into a clip. For example, I store colors for the midi fighter twister into a string '0,12,52,127' and write it to the clip name. So far I havn't found the limits to the amount of characters a clip name can have, so far so good... other than the gui responding VERY slowly when the clip name is large.
So it makes me concerned for the clip_name itself, especially if i want to expand preset slots per clip. Which leads me to the next thing i'm doing. I'm also working on a preset system to recall parameter values but for each slot. And then assigning a knob to morph between those parameter values. This it would require a bit of data. I've been able to save 80 or so parameter values into a clip. but that is only one preset. If I go for 8 presets per clip at 80 parameters thats 640 values. Each value represented by 4 characters(including the seperator) its 2560 characters total. I could reduce this by encoding in HEX which would eliminate the need for a seperator and each value would be respresented by 2 characters. So it would reduce it down to a total of 1280 characters.
I hate to reference Ableton on this forum or any discussion about bitwig (shame on me) but they have a method of storing a dictionary with each live set. It can be helpful for things like this.
Code: Select all
Live.Song.Song.set_data() Method
set_data( (Song)arg1, (object)key, (object)value) -> None : Store data for the given key in this object. The data is persistent and will be restored when loading the Live Set. C++ signature : void set_data(TPyHandle<ASong>,TString,boost::python::api::object)
Live.Song.Song.get_data()...
I could also see something like this useful to maintain state of a controller in a bitwig document.
In my excited states of getting to some sucess with the scripts I put the videos up on instagram. Might help show better what I'm attempting to achieve.
Twister Color Clips
https://www.instagram.com/p/B_ipcqAJwkh/
Parameter Recall + Morph
https://www.instagram.com/p/CDzaEbkpag6/
On this tip, once my scripts are done I want to generalize the Preset Recall and MidiFighter Color modules so people can implement their own versions of them. They are quite custom to my controller setup but maybe with some help from Moss or some others we can figure out a way to generalize them for others to leverage out of the box or with some minimal code. For now they are in pretty rough shape and can be seen here...
https://github.com/kirkwoodwest/worm-bi ... Centrifuge