any plans to expand constructor functionality?

For example, it would be nice to have the ability to instantiate a new
Oscillator with a specified type... something along the lines of:

var sine = context.createOscillator({ type: Oscillator.SINE });

instead of having to do this:

var sine = context.createOscillator();
sine.type = sine.SINE;

Of course, this introduces the necessity of exposing the Oscillator class
to the user, so maybe this isn't the right way to go about it. Still, the
ability to set parameters on instantiation would make the resulting code
look a bit cleaner.

Matt Diamond

Received on Monday, 2 July 2012 13:22:59 UTC