
Yesterday i started to move my old module player (classic four channel m.k. amiga .mods) originally written in bad c-code over to javascript, and now it actually plays the samples almost like it should, haven’t implemented many effects though, but it works much better than i expected
it plays this rather bad incarnation of the Axel F theme i found somewhere on the interwebs entirely using javascript and a couple of html5 audio tags as buffers… nothing magical going on, the player generates audio output into an array of mono samples at the given samplerate, the samples are converted to base64 encoded wave-audio and then put into one of the audiobuffers and then played. “nemo” pointed me to the extended audio api available in Firefox, i’ll have to look into that, that would eliminate the glitches between the bufferchanges.
Tested in Safari and Firefox, works fine in both.
WARNING! It gets extremely loud and distorted in Chrome for some reason, sounds like it doesnt recognize signed/unsigned waveforms or something.
Try it here: http://possan.se/junk/jsmod/
You can check the code out on github: http://github.com/possan/jsmod
