The getFrequencyResponse()
method of the IIRFilterNode
interface takes the current filtering algorithm's settings and calculates the frequency response for frequencies specified in the frequencyHz
array of frequencies.
The results are stored in two preexisting output arrays:
magResponse
receiving the linear magnitudephaseResponse
receiving the phase response in radians.var audioCtx = new AudioContext(); var iirFilter = audioCtx.createIIRFilter(); iirFilter.getFrequencyResponse(myFrequencyArray,magResponseOutput,phaseResponseOutput);
None.
getFrequencyResponse()
takes as parameters three Float32Array
s:
Specification | Status | Comment |
---|---|---|
Web Audio API The definition of 'getFrequencyResponse()' in that specification. | Working Draft |
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
---|---|---|---|---|---|
Basic support | 49.0 | ? | ? | ? | ? |
Feature | Android | Android Webview | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
---|---|---|---|---|---|---|---|---|
Basic support | No support | 49.0 | ? | ? | ? | ? | ? | 49.0 |
© 2005–2017 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/IIRFilterNode/getFrequencyResponse()