VS Code extension for syntax highlighting of Strudel live coding patterns.
- Syntax highlighting for Strudel patterns in
.txtfiles - Supports all major Strudel functions and methods
- Highlights musical notes, drum sounds, and pattern operators
- Auto-closing brackets for pattern notation
-
Copy this extension to your VS Code extensions directory:
- Windows:
%USERPROFILE%\.vscode\extensions\strudel-syntax - macOS:
~/.vscode/extensions/strudel-syntax - Linux:
~/.vscode/extensions/strudel-syntax
- Windows:
-
Restart VS Code
-
Open any
.txtfile with Strudel patterns - syntax highlighting should activate automatically
Create .txt files with your Strudel patterns:
// Basic drum pattern
"<bd hh> hh <~ hh> hh".sound()
.room(0.2)
.delay(0.1)
// Melodic sequence
"c3 [eb3 g3] f3 [ab3 c4]"
.sound("sawtooth")
.lpf(sine.range(400, 1200).slow(8))
- Pattern notation:
"<bd hh> [c d e]" - Functions:
stack(),choose(),sometimes() - Methods:
.sound(),.fast(),.slow(),.gain() - Effects:
.delay(),.reverb(),.lpf(),.attack() - Mathematical:
sine,rand,perlin - Notes:
c3,eb4,f#2 - Drums:
bd,sd,hh,cp