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.

threshold

Summary

The decibel value above which the compression will start taking effect. Its default value is -24, with a nominal range of -100 to 0. This parameter is k-rate.

Property of apis/webaudio/DynamicsCompressorNodeapis/webaudio/DynamicsCompressorNode

Syntax

Note: This property is read-only.

var result = DynamicsCompressorNode.threshold;

Return Value

Returns an object of type NumberNumber

Examples

var audioCtx = new AudioContext();
var compressor = audioCtx.createDynamicsCompressor();
compressor.threshold.value = -50;

Related specifications

W3C Web Audio API
W3C Editor’s Draft