Skip to content

Instantly share code, notes, and snippets.

@FBerthelot
Created November 5, 2015 22:24
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 FBerthelot/698d7a724ea1bd6c80bf to your computer and use it in GitHub Desktop.
Save FBerthelot/698d7a724ea1bd6c80bf to your computer and use it in GitHub Desktop.
//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