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.

knee

Summary

A decibel value representing the range above the threshold where the curve smoothly transitions to the ratio portion. Its default value is 30, with a nominal range of 0 to 40. This parameter is k-rate.

Property of apis/webaudio/DynamicsCompressorNodeapis/webaudio/DynamicsCompressorNode

Syntax

Note: This property is read-only.

var result = DynamicsCompressorNode.knee;

Return Value

Returns an object of type NumberNumber

Examples

var audioCtx = new AudioContext();
var compressor = audioCtx.createDynamicsCompressor();
compressor.knee.value = 40;

Related specifications

W3C Web Audio API
W3C Editor’s Draft