update method
Implementation
void update(List<double> input) {
double fallDown = fallSpeed * (1 / 60);
double filter = math.exp(-sensibility * (1 / 60));
for (int i = 0; i < input.length; i++) {
final bandMax = input[i];
levels[i] = bandMax;
peakLevels[i] = math.max(peakLevels[i] - fallDown, bandMax);
meanLevels[i] = bandMax - (bandMax - meanLevels[i]) * filter;
}
}