corbanbrook / dsp.js

Digital Signal Processing for Javascript
http://weare.buildingsky.net
MIT License
1.73k stars 234 forks source link

Missing filters #24

Open alexcastillo opened 8 years ago

alexcastillo commented 8 years ago

According to the documentation there is a HIGHPASS and a NOTCH filter available as part of this library but in code:

function IIRFilter(type, cutoff, resonance, sampleRate) {
  this.sampleRate = sampleRate;

  switch(type) {
    case DSP.LOWPASS:
    case DSP.LP12:
      this.func = new IIRFilter.LP12(cutoff, resonance, sampleRate);
      break;
  }
}

Am I missing something or there's no HIGHPASS or NOTCH filters implemented?

Alex cc @teonbrooks

ghost commented 6 years ago

Not my project, but from what I can tell the author left IIRFilter(1) unfinished. I don't know what LP12 is, but it appears unfinished, as does .LOWPASS

IIRFilter2 seems to be in better shape.

juliolpiva commented 5 years ago

I can't use HIGHPASS filter either. :(