Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
bufferPromise.then(buffer => virtualAudioGraph.update({
0: gain('output', {gain: dryLevel}),
1: biquadFilter('output', {frequency: highCut}),
2: biquadFilter(1, {frequency: lowCut, type: 'highpass'}),
3: gain(2, {gain: wetLevel}),
4: gain(3, {gain: 0.5}),
5: convolver(4, {buffer}, 'input'),
input: gain([0, 5]),
}))
reverbTypeToBufferPromise[reverbType] = bufferPromise