303 if you please (2009)
pouet.net
pouet.net
https://github.com/a1k0n/gsynth/blob/master/modules/tb303/tb...
It doesn't sound very much like a real tb303 whatsoever. I'm working on a JavaScript one based on an x0xb0x I built, but it has a long way to go.
It still needs accent emulation which is a bit of work, high pass output filter (it's bassier than a real 303 because there's some capacitors between the filter output and the amplifier I'm not emulating), the knob ranges / nonlinearities aren't quite right...
edit: And it also needs the square wave, which is super weird on the 303, as you're aware (yours has a sample for it I think)
I can't remember how I found these numbers or what I googled to come across them.
My Acid Machine app has been built in a way so that all of the instruments are self contained modules, you could possibly create an instrument that would be compatible with the whole UI and step sequencer etc of my app quite easily.
edit: nevermind, I thought you could specify a startTime in addition to endTime but you can't. so you'd have to use audioContext.currentTime to figure out where the sweep should be now, ramp to there, and exponential sweep down to the final value at the end time.
It definitely needs some improvement.
Try it out live here: http://errozero.co.uk/acid-machine/
Basically, not at all like a 303 except in spirit