How to use the virtual-audio-graph.convolver function in virtual-audio-graph

To help you get started, we’ve selected a few virtual-audio-graph examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github benji6 / andromeda / src / plugins / effects / Reverb / index.js View on Github external
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