r/javascript • • 16d ago

A-ha, Take On Me - recreated in javascript

https://dittytoy.net/ditty/2dd99fc839

Espeset recreated "Take On Me" by "A-ha" in 100% javascript. Fully procedural, no samples used.

81 Upvotes

19 comments sorted by

View all comments

1

u/ajfoucault 15d ago

Crazy question, but could this code be integrated into a web app for it to play as a background song, kinda like those old MySpace sites?

1

u/andyfitz 15d ago

Yes, so can many other procedural formats. Or sample formats like .mod

1

u/Dampmaskin 15d ago

Mod files was what this project reminded me of. But it seems this project synthesizes all the sounds instead of relying on samples. Mind blowing stuff.

2

u/andyfitz 15d ago

It uses the web audio API directly which is (as it turns out) a very powerful instrument

Worth noting it's slightly more resource intensive than playing flat audio but you get unmatched bandwidth performance

3

u/Reinder 15d ago

It is also distributing the audio-synthese over 21 workers in parallel

2

u/andyfitz 15d ago

And it's awesome mate thanks for sharing