Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 1.02 KB

README.md

File metadata and controls

41 lines (35 loc) · 1.02 KB

MinDSP

Header-only DSP library

Features

  • FIR Filtering
  • Ring buffer / Delay line
    • Fractional delay
  • Conversion between floating point and decibels
  • Biquadratic filter
  • Higher-order IIR filter
  • FIR filter design
  • Biquad filter design
    • Low pass filter
    • High pass filter
    • Peak filter
    • Low shelf filter
    • High shelf filter
    • Notch filter
    • Band pass filter
  • Window functions
    • Hann
    • Hamming
    • Blackman-Harris
  • FFT
    • Cooley-Tukey (radix-2)
      • std::complex<float>-based FFT automatically resizes non-power of 2 size inputs

Examples

Biquad

Low pass filtering

    using std::vector;
    using namespace mindsp::filter;
    vector<float> wave (44100); // any populated array with a wave in floating-point form
    biquad_filter bq (low_pass_filter(500, 44100, 1));  // low pass at 500hz at a sample rate of 44.1khz with Q factor of 1
    bq.apply(wave.data(),wave.data(),wave.size());