W3C home > Mailing lists > Public > public-audio@w3.org > January to March 2012

Re: oscillators and the Web Audio API

From: Phil Burk <philburk@mobileer.com>
Date: Tue, 07 Feb 2012 09:38:17 -0800
Message-ID: <4F316189.6060504@mobileer.com>
CC: public-audio@w3.org
Hello Jussi,

Thanks for responding.

On 2/7/12 12:17 AM, Jussi Kalliokoski wrote:
> Of course, it would be fairly trivial to port most of my algorithms
> to C, and have them as native modules for greater performance
> benefits, but I don't think I have enough time to do that right now.
> :/

I agree that the basic oscillators and noise generators should be native 
modules.  I have some native 'C' code from JSyn that could be used. I 
use a Taylor expansion to calculate the sine oscillator, which is very 
efficient. I also have two algorithms for making bandlimited sawtooth 
oscillators. The band-limited square and pulse are generated by adding 
two sawtooth waves and scaling.  For pink noise I use an optimized 
algorithm worked out here:


Phil Burk
Received on Tuesday, 7 February 2012 17:42:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:49:57 UTC