W3C home > Mailing lists > Public > public-audio@w3.org > July to September 2012

noteOn/noteOff and node lifetimes ...

From: Srikumar Karaikudi Subramanian <srikumarks@gmail.com>
Date: Sun, 5 Aug 2012 10:49:21 +0800
Message-Id: <9C86976D-8DC4-4CFA-8BD0-4842EE74155B@gmail.com>
To: Audio Working Group <public-audio@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 5 August 2012 02:49:53 GMT