Created
November 5, 2015 22:24
-
-
Save FBerthelot/698d7a724ea1bd6c80bf 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
//Chargement du nœud dans l'audio contexte | |
audioContext.createAudioWorker("nodeFactory.js").then( function(factory) | |
{ | |
//Instanciation d'un nouveau nœud | |
var node = factory.createNode(); | |
//On peux utiliser les fonctions sur les audio params comme pour les autres nœuds | |
node.amplitudeMultiplier.setValueAtTime(0, audioContext.currentTime); | |
node.amplitudeMultiplier.linearRampToValueAtTime(10, audioContext.currentTime + 10); | |
node.connect(output); | |
input.connect(node); | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment