Create a compressor node

1
2
3
4
5
6
7
// Create a compressor node
var compressor = audioCtx.createDynamicsCompressor();
compressor.threshold.value = -50;
compressor.knee.value = 40;
compressor.ratio.value = 10;
compressor.attack.value = 0.1;
compressor.release.value = 150;