Strudel Basics
Strudel is a music live-coding language that runs in the browser using Web Audio. StrudelHub uses Strudel as its audio engine — all code you write or push via the API is Strudel JavaScript.
Quick examples
Simple drum pattern
$: s("bd sd hh hh").bank("RolandTR909")Melody with effects
$: note("c4 e4 g4 b4")
.s("piano")
.slow(2)
.room(0.5)
.delay(0.25)Stacking multiple patterns
$: stack(
s("bd*4, [~ cp]*2, hh*8").bank("RolandTR909"),
note("<c2 eb2 f2 g2>").s("sawtooth").lpf(600)
)Learn more
- Strudel Workshop — Interactive tutorial covering all the basics
- Strudel Reference — Full function and pattern reference
- Sound Library — Browse available sounds and samples