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

Re: Thoughts and questions on the API from a modular synth point of view

From: Chris Wilson <cwilso@google.com>
Date: Wed, 18 Jul 2012 12:13:36 -0700
Message-ID: <CAJK2wqWy3HT51XHJRDfwHQi-w68FG1KpQCQGZ5_3X0SXTzbZqA@mail.gmail.com>
To: Peter van der Noord <peterdunord@gmail.com>
Cc: Raymond Toy <rtoy@google.com>, "public-audio@w3.org" <public-audio@w3.org>
On Wed, Jul 18, 2012 at 10:45 AM, Peter van der Noord <peterdunord@gmail.com
> wrote:

> I would point out that using oscillators for LFOs, et al, you would
> likely want very careful control over when the waveform starts - in which
> case, having a separate noteOn method is actually quite useful.
> You are right, but the naming is weird since an oscillator itself has
> nothing to do with notes that can be turned on or off. I'd call them
> start() and stop().

That's already filed as an issue:

> Wouldn't you actually want to set up a sync relationship between two
> oscillators instead?  Having to deal with calling a sync method a thousand
> times a second seems odd to me.  But Chris has probably thought of this.
> It's not that odd. Resetting an osc when used as lfo is often done with
> the beat, for example to create temposynced filtersweeps (just listen to
> any dubstep song to hear that effect). While that reset indeed isnt called
> thousands times per second, it's an often used (easy and cheap, cpu wise)
> soundsynthesis technique to create strange harmonics as well (two oscs at
> audible but different frequencies, one of them syncing the other). A lot of
> analog and digital oscillators have a sync input for this purpose.
> http://en.wikipedia.org/wiki/Oscillator_sync

That's what I was saying - I think you want a gating/trigger input type,
and a separate thing (not just a generic "input") to connect to.  I'm
definitely supportive of having sync on oscillators, although you CAN
implement this today (with noteOns).
Received on Wednesday, 18 July 2012 19:14:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:50:01 UTC