Csound Csound-dev Csound-tekno Search About

[Cs-dev] JavaScript and Web Audio

Date2015-04-02 18:57
FromMichael Gogins
Subject[Cs-dev] JavaScript and Web Audio
AttachmentsNone  None  
The current issue (Spring 2015) of Computer Music Journal has a good article "Designing Musical Instruments for the Browser" about Gibber, the JavaScript live coding system for music, that goes into some detail on the mechanics. The authors describe some alternatives and design decisions that seem useful to me with regard to what you were saying about the ScriptProcessor node. Because there is some lead time for CMJ publications, I think we should investigate the current state of Web Audio with respect to user defined nodes, the ScriptProcessor, and the Audio Workers.

I fooled around with Gibber a few months ago and was impressed.

They also discuss their Interface.js library, which I might find useful for JavaScript coding of widgets to control Csound.

Best,
Mike

-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com

Date2015-04-03 16:43
FromSteven Yi
SubjectRe: [Cs-dev] JavaScript and Web Audio
I'll have to take a look at the article, but Gibber is a really
well-done JS library for music making as far as I've looked at.

ScriptProcessorNode is already deprecated and it sounds like it is
going to get removed altogether.  Granted, it has flaws in its design,
but removing it seems like it'll break lots of libraries out there.  I
guess we'll have to wait and see what happens.

The WebAudio folks are still coming up with specifications for
AudioWorker; the basics are there to do audio-thread computation with
JS code, but I don't know if it'll be possible to do node creation
from within an AudioWorker (last I checked there was no way to access
AudioContext from an AudioWorker; there's reason for not allowing
that, but also ramifications in limiting what can be implemented then
in terms of event processing).  If you follow the public-audio mailing
list, you'll find that spec is still in flux.  (Also can follow github
issues for the webaudio spec). Another thing to wait and see.



On Thu, Apr 2, 2015 at 1:57 PM, Michael Gogins  wrote:
> The current issue (Spring 2015) of Computer Music Journal has a good article
> "Designing Musical Instruments for the Browser" about Gibber, the JavaScript
> live coding system for music, that goes into some detail on the mechanics.
> The authors describe some alternatives and design decisions that seem useful
> to me with regard to what you were saying about the ScriptProcessor node.
> Because there is some lead time for CMJ publications, I think we should
> investigate the current state of Web Audio with respect to user defined
> nodes, the ScriptProcessor, and the Audio Workers.
>
> I fooled around with Gibber a few months ago and was impressed.
>
> They also discuss their Interface.js library, which I might find useful for
> JavaScript coding of widgets to control Csound.
>
> Best,
> Mike
>
> -----------------------------------------------------
> Michael Gogins
> Irreducible Productions
> http://michaelgogins.tumblr.com
> Michael dot Gogins at gmail dot com

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net