- From: Matt Diamond <mdiamond@jhu.edu>
- Date: Sun, 1 Jul 2012 17:30:05 -0700
- To: public-audio@w3.org
Received on Monday, 2 July 2012 13:22:59 UTC
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