Re: Oscillator syncing

On Wed, Jun 5, 2013 at 2:28 PM, Josh Nielsen <josh@joshontheweb.com> wrote:

> Hey All,
>
> It is a common technique with synthesizers to sync oscillators in a
> master/slave setup where the slave oscillator's waveform restarts every
> time the master oscillator's waveform restarts.  A lot of more complex and
> natural sounding timbres are possible this way.  I don't see any mention of
> this in the API spec.  Is this going to be added or is there some clever
> way to accomplish this with the existing api that I haven't thought of?
>

Indeed, this is a nice effect.  There's currently no way to do it, but
we've discussed this before, and might want to add this ability.

One way we could approach it is to add a new attribute to OscillatorNode
called .master (or something like that):

osc2.master = osc1;

By default, the attribute would be null and thus would just run normally...

Chris


>
>
> --
> Thanks,
> Josh Nielsen
> @joshontheweb <http://twitter.com/joshontheweb>
> joshontheweb.com
>

Received on Wednesday, 5 June 2013 22:20:50 UTC