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.


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:03:11 UTC