Skip to content

Instantly share code, notes, and snippets.

@vitaliy-bobrov
Created June 17, 2019 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vitaliy-bobrov/916d522dca10911bd66440c7f0969762 to your computer and use it in GitHub Desktop.
Save vitaliy-bobrov/916d522dca10911bd66440c7f0969762 to your computer and use it in GitHub Desktop.
const convolver = new ConvolverNode(context);
fetch('impulse.wav')
.then(response => response.arrayBuffer())
.then(buffer => {
context.decodeAudioData(buffer, decoded => {
convolver.buffer = decoded;
})
.catch((err) => console.error(err));
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment