Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
constructor(
context: AudioContext,
model: string,
protected defaults: CompressorSettings
) {
super(context, model);
this.levelNode = new GainNode(context);
this.compressor = new DynamicsCompressorNode(context, {
knee: 30,
release: 0.25
});
this.processor = [this.compressor, this.levelNode];
connectNodes(this.processor);
this.applyDefaults();
}