Re: Web Audio API questions and comments

On Thu, Jun 21, 2012 at 3:08 AM, Joe Turner <> wrote:

> creating the equivalent to variables?  So say I wanted to add a dc
> offset of 50 to a signal, am I expected to use a JavaScriptAudioNode
> which outputs 50s, waveshape an oscillator so it outputs 1 and use an
> AudioGainNode to scale it up to 50, or do something else clever which
> I haven't thought of?

Another way is to create an AudioBufferSourceNode with a buffer whose
contents are 50 and make it loop (if you want it to loop forever).


Received on Thursday, 21 June 2012 18:04:54 UTC