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: ChorusSettings
) {
super(context, model);
this.eqNode = new StandardTone(context);
this.lfo = new LFO(context);
this.delayNode = new DelayNode(context);
this.feedbackNode = new GainNode(context);
this.levelNode = new GainNode(context);
this.processor = [...this.eqNode.nodes, this.delayNode, this.levelNode];
connectNodes(this.processor);
// Feedback loop.
this.delayNode.connect(this.feedbackNode);
this.feedbackNode.connect(this.delayNode);
// LFO setup.
this.lfo.connect(this.delayNode.delayTime);
this.applyDefaults();
}
constructor(
context: AudioContext,
model: string,
buffer$: Observable,
convolverMakeUp: number,
protected defaults: ReverbSettings
) {
super(context, model);
this.splitter = new ChannelSplitterNode(context);
this.timeNode = new DelayNode(context);
this.toneNode = new StandardTone(context);
this.convolver = new ConvolverNode(context);
this.wet = new GainNode(context);
this.dry = new GainNode(context);
this.merger = new ChannelMergerNode(context);
this.makeUpGain = new GainNode(context);
this.processor = [
this.splitter,
this.timeNode,
...this.toneNode.nodes,
this.convolver,
this.wet,
this.merger,
this.makeUpGain
];