Hello! I am using accelerometer values to control some SuperCollider code. Using scope I found that the accelerometer (ADXL335) inputs (x axis) are between 0.326 and 0.486 with a middle point at 0.406. Because I want values ranging all the way from 0 to 1 in my SuperCollider code, I normalized the values I get from te analog inputs (just using (x-x_min)/(x_max-x_min). However, this also means that the values fluctuate even more, and it is hard to control the output sound in a smooth way. How can I smooth the values from the accelerometer?

Thanks! :-)

try with a low pass filter at 10Hz or similar. The cutoff of the filter will be a trade-off between responsiveness and precision.

Of course! Works like a charm! Thanks a lot!