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

Re: noteOn/noteOff and node lifetimes ...

From: Srikumar Karaikudi Subramanian <srikumarks@gmail.com>
Date: Sun, 5 Aug 2012 10:52:14 +0800
Message-Id: <9397A40D-0B9B-4A46-A016-D7E4280DDE81@gmail.com>
To: Audio Working Group <public-audio@w3.org>
Apologies for the mismatched subject that is one step
removed from the actual content of my post. The suggested
change is because Oscillator and AudioBufferSourceNode 
objects can only be used once through noteOn/noteOff. 
Therefore creating them ought to have as little overhead
as possible.

-Kumar

On 5 Aug, 2012, at 10:49 AM, Srikumar Karaikudi Subramanian <srikumarks@gmail.com> wrote:

> 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:52:44 GMT

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