add low pass filter and ability to write wave files