# Smoothing techniques

## Recommended Posts

WuTz    100
Hello! I've got this: But it runs very *unsmooth*. Does anyone knows a way to make it better? It reacts to every little change in the music. Scaling down the Update rate is not good, because I want it precise. What is a good smoothing technique?

##### Share on other sites
alvaro    21246
You mean something like a low-pass filter?
const lambda = 0.1; // number in (0,1] which controls how quickly the filter forgets its statenew_display_value = (1-lambda)*old_display_value + lambda*new_data;