I’ve stared using github to host the nsound source code here. I’m currently working on porting some of the code in this paper:
I’ve ported most of the MATLAB code to Python and have made some progress on a C++ version here. Here’s a plot:
This class will also be able to read/write JSON strings. So one could load any IIR filter designed elsewhere and load it into the Biquad class. Here’s a sample of the JSON for the filter designed above:
1 2 3 4 5 6 7 8 9 |
{ "band_width_hz": 2400, "freq_center_hz": 5000, "gain_db_at_band_width": 9, "gain_db_at_fc": 12, "gain_db_baseline": 0, "order": 4, "samplerate": 48000 } |