Check out the Teensy 3 Audio Library for real-time digital audio effects and filters.
https://www.pjrc.com/teensy/td_libs_Audio.html