getFrequencyResponse
Summary
Given the current filter parameter settings, calculates the frequency response for the specified frequencies.
Method of apis/webaudio/BiquadFilterNodeapis/webaudio/BiquadFilterNode
Syntax
var = BiquadFilterNode.getFrequencyResponse(frequencyHz, magResponse, phaseResponse);
Parameters
frequencyHz
- Data-type
- void
Specifies an array of frequencies at which the response values will be calculated.
magResponse
- Data-type
- void
Specifies an output array receiving the linear magnitude response values.
phaseResponse
- Data-type
- void
Specifies an output array receiving the phase response values in radians.
Return Value
Returns an object of type
Examples
var audioCtx = new AudioContext();
var biquadFilter = audioCtx.createBiquadFilter();
biquadfilter.getFrequencyResponse(myFrequencyArray,magResponseOutput,phaseResponseOutput);
Related specifications
- W3C Web Audio API
- W3C Editor’s Draft