When most people think about coding, they imagine spreadsheets, complicated math, or someone silently typing in a dark room at two a.m. Music production usually brings up a completely different image: headphones, synthesizers, and giant software panels covered in glowing buttons.
But what if coding was the instrument?
That’s the idea behind Strudel, a free browser-based platform that lets users create music using JavaScript-inspired code. Instead of dragging notes onto a digital piano roll, you type patterns directly into the editor and hear the results instantly. It sounds complicated at first, but surprisingly, it’s one of the most creative and beginner-friendly coding experiences I’ve tried.
Strudel is based on a style of performance called live coding, where musicians write and edit code in real time to generate music. The code itself becomes part of the performance. Rather than hiding the technical process, live coders often project their screens for the audience to watch as the music evolves.
The website itself is simple: open the editor, press play, and start experimenting. One of the first examples many beginners try looks something like this:
Example: sound(“bd sd bd sd”)
Even without programming experience, the structure is readable. “bd” stands for bass drum, and “sd” stands for snare drum. Running the code creates a simple beat pattern instantly. Suddenly, coding starts to feel less like solving equations and more like composing. Furthermore, Strudel offers its own interactive tutorial that walks users through everything they need to know to get started.
What makes Strudel especially interesting is how it turns programming into an artistic tool rather than just a technical skill. It also lowers the barrier to music production. Professional music software can be expensive and intimidating, but Strudel runs entirely in a browser. There’s no installation process, no complicated setup, and no requirement to know music theory beforehand.
Computer science and the arts are usually treated as opposites in school, where one is considered “technical” and the other “creative.” However, tools like Strudel challenge that distinction completely. It turns out JavaScript can do more than build websites; sometimes, it can make music, too.
Link to Strudel:
https://strudel.cc