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.

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