Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use the IIRFilter? #46

Open
bowen-source opened this issue Apr 21, 2022 · 0 comments
Open

How to use the IIRFilter? #46

bowen-source opened this issue Apr 21, 2022 · 0 comments

Comments

@bowen-source
Copy link

var filter = new IIRFilter(DSP.LOWPASS, cut_fre,fs); filter.process(data);

this is my code,The help document says IIRFilter should be written like this:
var filter = IIRFilter(LOWPASS, 200, 44100); filter.process(signal);

but the code which the help document gave seems wrong ,it warns me that 'LOWPASS' is not defined ,but DSP.LOWPASS is ok,and i noice that IIRFilter actually needs 4 parameters(type,cutoff,resonance,sampleRate).

so how to use IIRFilter??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant