noteOn/noteOff and node lifetimes ...

Hi all,

It appears that the Oscillator node's setup code for the
"basic waveforms" is needlessly run for every node ("voice")
instantiated. To avoid repeating the waveform setup code, 
can we perhaps delegate the task of creating the basic 
waveforms to the AudioContext object instead of the Oscillator 
node? i.e. AudioContext.createWaveTable(type) can be 
overloaded to return a wave table of the requested basic 
waveform which can then be assigned to any number of 
oscillator nodes.

Thoughts?

Best,
-Kumar
anclab.org

Received on Sunday, 5 August 2012 02:49:51 UTC