2 ms·
This is the "playback code" you generate for one of the sounds: // import Gen from 'wasgen' // var gen = new Gen() gen.play([ {type:"n0", gain:{a:0.0
by PaulDavisThe1st 6y ago
This is the "playback code" you generate for one of the sounds:
// import Gen from 'wasgen'
// var gen = new Gen()
gen.play([
{type:"n0", gain:{a:0.027,h:0,d:0.013,s:0.45,r:0.054}},
{type:"bandpass", freq:{t:2,p:0.4,q:0.01},Q:0.8},
], 999, 1, gen.now(), gen.now() + 0.084)
This is structurally extremely isomorphic to SC or Chuck etc., and could become more powerful if it was SC with a WebAudio backend for output.
I know what the differences are - I've worked in this field for 20 years. I was just trying to give you a gentle smiley faced nudge to jump in on a "better" version of what you've already done in order to Make The World A Better Place.
Really :)
- fenomas 6y ago> This is structurally extremely isomorphic to SC or Chuck etc., Negatory. A sound program in wasgen (i.e. the thing you pass to the "play" function) is a static object; comparable programs in SC/Chuck are code. They are as different as JSON and JS. As such, porting SC/Chuck to the browser would mean building a compiler/transpiler/VM/etc. > I was just trying to give you a gentle smiley faced nudge ...to Make The World A Better Place. By saying my project reinvents a wheel that's already been reinvented over and over and over so I should "just" write a port of a different project instead? Fair enough.