smoothingTimeConstant
Summary
A value from 0 to 1 representing the averaging constant with the last analysis frame. Default is 0.8.
Property of apis/webaudio/AnalyserNodeapis/webaudio/AnalyserNode
Syntax
var result = AnalyserNode.smoothingTimeConstant;
AnalyserNode.smoothingTimeConstant = value;
Return Value
Returns an object of type NumberNumber
Examples
var audioCtx = new AudioContext();
var analyser = audioCtx.createAnalyser();
analyser.smoothingTimeConstant = 1;
Related specifications
- Web Audio API
- W3C Editor’s Draft