This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

frequencyBinCount

Summary

Half the fftSize (the size of the FFT used for frequency-domain analysis).

Property of apis/webaudio/AnalyserNodeapis/webaudio/AnalyserNode

Syntax

var result = AnalyserNode.frequencyBinCount;
AnalyserNode.frequencyBinCount = value;

Return Value

Returns an object of type unsigned longunsigned long

Examples

var audioCtx = new AudioContext();
var analyser = audioCtx.createAnalyser();
var bufferLength = analyser.frequencyBinCount;

Related specifications

Web Audio API
W3C Editor’s Draft