You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to set a range for a potentiometer? Something similar to Behringer BCR2000 where you can set min value and max value when configuring a knob. If it is possible, is it possible to update it dynamically, ie. during a controller's operation, like selecting a bank?
Describe the solution you'd like
I want to be able to set a minimal and max CC value sent by a controller (potentiometer).
Let's say a synthesizer has negative modulation from 0 to 63 and positive modulation from 64 to 127. I would like to be able to set my controller to send CC messages only between 0 and 63.
Another example: I want to control a synthesizer filter cutoff, but only in a range betweet 74 and 98 (arbitrary range).
I imagine it as either being able to update a property on a CCPotentiometer class, or entering some kind of config mode to set it.
Describe alternatives you've considered
I could try setting a range by hardware on analog level (lowering 5V sent to a potentiometer as reference). That would be imprecise would not allow for arbitrary range setting.
Using the map function is indeed the recommended approach. See #483 (reply in thread) for inspiration. (In your case, you would use also change the last two arguments to the Arduino map function.)
Hi, thanks for your suggestions, I managed to get it to work, at first statically and then using the template method from thread #483
Looks like I can update ranges at runtime, but I have to pass the index literally to the template:
Is it possible to set a range for a potentiometer? Something similar to Behringer BCR2000 where you can set min value and max value when configuring a knob. If it is possible, is it possible to update it dynamically, ie. during a controller's operation, like selecting a bank?
Describe the solution you'd like
I want to be able to set a minimal and max CC value sent by a controller (potentiometer).
Let's say a synthesizer has negative modulation from 0 to 63 and positive modulation from 64 to 127. I would like to be able to set my controller to send CC messages only between 0 and 63.
Another example: I want to control a synthesizer filter cutoff, but only in a range betweet 74 and 98 (arbitrary range).
I imagine it as either being able to update a property on a CCPotentiometer class, or entering some kind of config mode to set it.
Describe alternatives you've considered
I could try setting a range by hardware on analog level (lowering 5V sent to a potentiometer as reference). That would be imprecise would not allow for arbitrary range setting.
Additional context
I already use banks to change CC number on a pot, here is the code for reference:
The text was updated successfully, but these errors were encountered: