Created
June 17, 2019 19:43
-
-
Save vitaliy-bobrov/916d522dca10911bd66440c7f0969762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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