The last time Hackerfall tried to access this page, it returned a not found error. A cached version of the page is below, or click here to continue anyway

JavaScript Karplus-Strong

A few years ago I came across Andr Michelle's Karplus-Strong guitar synthesizer . Apart from being an incredibly cool toy, the set of chords it strums is actually pretty nice to listen to. Sometimes I'd have it playing for background noise.

The only hitch is that since it's written in ActionScript, it won't run on Android. So, I set out to reimplement it in HTML5 and Javascript using Web Audio and asm.js.

Here's how it turned out. Check out https://github.com/mrahtz/javascript-karplus-strong for source. Full credit for the algorithm itself goes to Andr - this is an almost exact clone of the decompiled ActionScript.

If you're interested in details of how the Karplus-Strong algorithm works, check out another post, Karplus-Strong String Synthesis .

Continue reading on amid.fish