Smoothing MIDI CC with Ani

edited August 2014 in Library Questions

Hi there!

I'm using the Ani library (http://www.looksgood.de/libraries/Ani/) to smooth out MIDI CC values I get from my QuNeo. I'm basically using the code below...

x and y are being smoothed out a little, but there are still many "bumbs". Is this the right way to do it? Are there just too many calls to this to be working effectively?

Are there other ways of smoothing this kind of data (without writing my own pseudo low pass filter)?

Thanks, Benni.

void setX(float _x) {
    Ani.to(this, 3.5, "x", _x);
}
void setY(float _y) {
    Ani.to(this, 3.5, "y", _y);
}    
void draw() {
    ellipse(x * width, (1-y) * height, 100, 100);
}
Tagged:

Answers

Sign In or Register to comment.