Post by dusty on May 17, 2021 21:49:11 GMT
Hi All..
I'm working on a project where I will be extending the number of virtual knobs for a Behering X-Touch Mini.
www.behringer.com/product.html?modelCode=P0B3M
In its current form it has 2 banks for the 8 faders giving it 16 total. I plan to bump that up to 8 banks and 64 total knobs.
Would love some advice on what features I should use. I can program but this code is a little weird to me and I don't work with Streambyter all that often.
The box has 8 endless encoders and with LED rings to indicate knob position. There are 8 buttons that I plan to use as a bank selector. button 1 = vKnobs 1-8. button 2 = vKnobs 9-16, etc..
My plan..
When you select a bank, I will transpose all the knob CC values up by a factor of 8, so CC1 will become CC9. I think I can get this done by using an IF statement that says, if bank two is selected then use the MAT function to add 8, if it's bank 3 add 16 and so on.
Since the LEDs positions per knob will be different between banks, my plan is to store the knob position into a variable that I can use to restore the knob positions when I switch banks. Is there an easy/concise way to create 56 variables and store a 0 value in them? My idea here is as the knob is turned, I'll store the latest value in to each knob's LED position variable. That way when a previously used bank is selected, I can recall the LED positions of all of the knobs and send the position to the device to update it's view.
Lastly I want to be able to update the buttons LED that I'm using and I'd like to have it work like these selector buttons normally work. So if someone selects bank 4, it will light up that button while turning off all the others. The button updates are done using note on and off.
Feel free to point me to documentation, code snippets, etc. I just need some guidance on what I should be thinking about in order to create the code in a clean & concise way. Otherwise I think I'll be writing a script thats hundreds of lines long like a no0b..
I'm working on a project where I will be extending the number of virtual knobs for a Behering X-Touch Mini.
www.behringer.com/product.html?modelCode=P0B3M
In its current form it has 2 banks for the 8 faders giving it 16 total. I plan to bump that up to 8 banks and 64 total knobs.
Would love some advice on what features I should use. I can program but this code is a little weird to me and I don't work with Streambyter all that often.
The box has 8 endless encoders and with LED rings to indicate knob position. There are 8 buttons that I plan to use as a bank selector. button 1 = vKnobs 1-8. button 2 = vKnobs 9-16, etc..
My plan..
When you select a bank, I will transpose all the knob CC values up by a factor of 8, so CC1 will become CC9. I think I can get this done by using an IF statement that says, if bank two is selected then use the MAT function to add 8, if it's bank 3 add 16 and so on.
Since the LEDs positions per knob will be different between banks, my plan is to store the knob position into a variable that I can use to restore the knob positions when I switch banks. Is there an easy/concise way to create 56 variables and store a 0 value in them? My idea here is as the knob is turned, I'll store the latest value in to each knob's LED position variable. That way when a previously used bank is selected, I can recall the LED positions of all of the knobs and send the position to the device to update it's view.
Lastly I want to be able to update the buttons LED that I'm using and I'd like to have it work like these selector buttons normally work. So if someone selects bank 4, it will light up that button while turning off all the others. The button updates are done using note on and off.
Feel free to point me to documentation, code snippets, etc. I just need some guidance on what I should be thinking about in order to create the code in a clean & concise way. Otherwise I think I'll be writing a script thats hundreds of lines long like a no0b..