trevorbryden
Active member
Hi!
I'm making a synth and would like for a potentiometer to read analog values but I want behaviors that aren't linear.
I want the first half-turn of the pot (the values used, for example, to go from 0-500 or so) to set an amount of chorus effect, then a 'gutter' in the middle that will represent 'off' (maybe 500-530 or so), then from 530 - 1023 I want the knob to control an amount of reverb instead.
Is it typical in this case to create an array of 1023 elements to describe your desired values at all of these positions, and then have the analogRead values correspond to the index of that array?
Or is there a simpler, more conventional approach?
I plan to use knobs for multiple exclusive functions rather often from here on out in my synth designs. I'm constraining myself to knob-per-function control panels and sometimes I've already soldered up pots to every single pin of my Teensies. So I know there are other solutions possible with encoders, an LCD, some LEDs, whatever but I would also specifically know how this is done.
Thanks!
I'm making a synth and would like for a potentiometer to read analog values but I want behaviors that aren't linear.
I want the first half-turn of the pot (the values used, for example, to go from 0-500 or so) to set an amount of chorus effect, then a 'gutter' in the middle that will represent 'off' (maybe 500-530 or so), then from 530 - 1023 I want the knob to control an amount of reverb instead.
Is it typical in this case to create an array of 1023 elements to describe your desired values at all of these positions, and then have the analogRead values correspond to the index of that array?
Or is there a simpler, more conventional approach?
I plan to use knobs for multiple exclusive functions rather often from here on out in my synth designs. I'm constraining myself to knob-per-function control panels and sometimes I've already soldered up pots to every single pin of my Teensies. So I know there are other solutions possible with encoders, an LCD, some LEDs, whatever but I would also specifically know how this is done.
Thanks!