- Edited
hey there
i'm using 2 pots to control some timings, standard wired like this:
gnd ----->>>>>>>>----- 5v
analog in___î
at the 5v side, i get a steady reading @0.99999
everywhere else, even at gnd side, i get small fluctuations (in the 0.000x range).
all the way CCW i get values up to 0.00015v.
in the 'real' world of analog synths an guitar pedals that wouldn't bother me at all.
but if i didn't smooth out those values, it seems the patch was eating a lot of Cpu and causing underruns from constantly updating the values.
i threw something together with a lot of multiplications and divisions and [change] and [int]'s to get rid of the bouncing decimals and smooth everything out as close as possible to the input et voila, no more underruns.
but i was wondering, is there a standard way of doing this? i tried lowpass filtering the incoming signal, but to no avail (both in soft- and hardware), and what i cobbled together now seems both completely clumsy and rather arbitrary. how do you guys usually tackle this? or am i the only one seeing slightly drifting random-walkish values?