Re: Any example of WebAudio API and asm.js working audio code?

I made a simple wavetable oscillator that compiles correctly and runs. It's
the asmSine oscillator in the file below if you're interested (not asmSine2
which was an attempt to integrate it into my library Gibberish).

https://github.com/charlieroberts/Gibberish/blob/master/scripts/oscillators..js

Assuming you name it asmSine instead of Gibberish.asmSine, use it as
follows:

var buf = new ArrayBuffer(4096);
var sine = asmSine(window, null, buf);
sine.init();
var sample = sine.gen( 440, .25, 44100 );

I started from this simpler (non-wavetable) sinewave example, from a slide
Miles Borins posted about flocking.js and his work porting Faust to run
under asm.js:

https://ccrma.stanford.edu/~mborins/420b/#/9

Hope some of this helps. - Charlie



On Wed, Aug 28, 2013 at 1:02 PM, Stéphane Letz <letz@grame.fr> wrote:

> Hi Sebastien,
>
> Any new from Martin Roth?
>
> Thanks
>
> Stéphane
>
>
> Le 27 août 2013 à 15:03, s p <sebpiq@gmail.com> a écrit :
>
> > Hi Stephane,
> >
> > I know that Martin Roth from RjDj was experimenting with that a while
> ago, but I don't remember if he managed to get any result. I'll ask him.
> >
> > BR
> >
> > Sebastien Piquemal
> >
> >
> > 2013/8/27 Stéphane Letz <letz@grame.fr>
> > Hi All,
> >
> > Has anybody some working WebAudio API code (more specifically
> ScriptProcessorNode kind of code) that use the asm.js model ?
> >
> > Thanks.
> >
> > Stéphane Letz
> >
>
>
>

Received on Thursday, 29 August 2013 06:40:06 UTC