Creating a custom echo node with web-audio
javascript, web-audio-api
Solution
Have a look at this article I wrote, it might give you some ideas: http://www.html5rocks.com/en/tutorials/casestudies/jamwithchrome-audio/ (which explains the basic idea behind tuna.js that Taoist recommended).
Problem
I'm playing with the webkit Audio API and I'm trying to create an Echo effect, to accomplish that I've connected a DelayNode with a GainNode in a loop (The output of one is the input of the other, and viceversa). The effect works fine, but now I want to create an EchoNode Object that I can just plug-in and connect with the other AudioNode objects. Something like: ``` myEchoNode = new EchoNode(); myConvolverNode = context.createConvolver(); myConvolverNode.connect(myEchoNode); ``` I think that I should make my EchoNode inherit from AudioNode, so that the connect function of every other AudioNode would work, but I don't know how to do that in Javascript with the web Audio API. Can anyone give me a hint, or if you think that there is a better way to accomplish that I would greatly appreciate it. Thanks