Both objects are designed to work together so all parameters can be controlled by only 2 Rotary Encoders. Each Rotary encoder is connected to 3 digital In GPIO pins on the Axoloti.
gav / Rot Enc / Rot Enc Selector.axo
Rot Enc Selector.axo (1.6 KB)
gav / Rot Enc / Rot Enc Value.axo
Rot Enc Value.axo (1.9 KB)
Both objects are similar in design, they both have an adjustable maximum parameter, and a preset parameter which will be the integer where it begins once started.
The "Rot Enc Value" object also has a minimum parameter and a value parameter.
The "Value" parameter is the unique number given to activate the object when the selector selects its value. eg.. "Selector" object selects value 5, any "Value" object containing the value 5 in its value parameter will become active and can be adjusted by twisting the rotary encoder for increment or decrement, or pressing the momentary switch option (if it has one). outlet_o - is the rotary encoder integer for connecting to the objects you are adjusting, outlet_b - is the momentary switch in boolean, outlet_a - is a boolean output that goes high when the selector and the value match to confirm that object is connected to the selector.
To add more parameters, just increase the max value on the selector and add more "Rot Enc Value" objects.
The following patch shows a basic setup spread out over 0 to 15 selector values with 4 Value objects spread out amongst them.
rot enc.axp (8.1 KB)
All in working order.