![[str]dltn Live[code] logo](logo.jpg)
[str]dltn Live[code] is a VS Code extension. It turns your editor into a Strudel IDE whenever you
open a .strudel file.
Strudel is a language for making music with code. [str]dltn Live[code] embeds the real Strudel, the same editor and the same sound engine, and adds tools on top of it, in the manner of Ableton Live: a browser of every sound, synth, FM-1 firmware, snippet, song and function, a mixer and music controls for the song you play, and your music as plain files in a project.

Download the latest release | User manual (PDF) | Source on GitHub
Free and open source (AGPL-3.0-or-later, like Strudel). It runs on desktop VS Code and in GitHub Codespaces, so you can also keep a music project as a repository and play it from a browser on any machine, with nothing installed.
Version 0.5.1: unified Plugins > FM-1 Synths catalog (
Installed/Available) with direct downloads, batch Download all, centered preloaded screens, VIBE FM (.wasm, including native SHRUB (WASM)), real FM-1.fwscfirmwares (browserfm1-emuand nativefm1-live), Hardware MIDI profiles, and experimental USB-MIDI SysEx flashing; the unified 4-pane Browser with Controls, Back/Forward history, song Undo/Redo, single-click previews for every sound/synth/firmware, and full drag-to-insert into both editors and the Mixer; plusM/S/Cline controls in both the Strudel and native VS Code editors. Version 0.5.0 brought MIDI knobs on sliders, the Master strip, and the user manual; 0.4 brought desktop MIDI, recording/rendering to.wav/.mp3, and level meters; 0.3 brought the Devices view; 0.2 the Mixer and Library. See "What is missing" at the end.
M-VAVE FM-1, VIBE FM (.wasm) and real FM-1 (.fwsc) firmwares. Got an FM-1? Play it over desktop MIDI with built-in Hardware profiles (SHRUB with CC 74 cutoff, CC 16-19 macros and its Editor... button, plus FM-1 Stock). Without hardware, install and play VIBE FM
.wasmbuilds (s("vibefm1:<id>"), including SHRUB (WASM), each with live screens, F1-F6 keys and parameters) and real FM-1.fwscfirmwares (s("fm1:<id>")viafm1-emuor nativefm1-live) directly from Plugins > FM-1 Synths in the Browser.
This project is a fork of vstrudel. We forked it because the scope grew beyond a VS Code extension.
Editor
.strudel files: the upstream packages, not a copy.Mixer and Music Controls
$kick:, bass:), side by side as in the Session view of Live. A song or snippet
without parts is one strip. Two blue buttons unfold every strip or fold them all.._scope() to the part..duck() and .orbit() for it..wav and .mp3 next to it.MIDI
M / S / C) left of the line numbers in the Strudel editor (Mute,
Solo, and MIDI Capture with tooltips), plus a knob button under every fader of the Mixer.
Click C (it turns red), turn a knob on your controller (it turns green): that knob now
moves the slider, the sound and the number in the code. It takes over once it reaches the
slider's value, and a dim second handle on the fader shows where your knob is until then..knob(74) after the slider, so it stays with the song. On
strudel.cc the song plays without the knob..midi('device') plays a synth or a drum machine in time with the sound; midin() and
midikeys() read a controller or a keyboard. The Library lists your devices. Desktop
only.Sounds
.bank("...") button on hover.supersaw, zzfx, VIBE .wasm, emulated .fwsc, and hardware MIDI
profiles), even with no song open, for 1 loop with a smooth fade-out and clean disposal.$name: line
(or append an effect onto an existing chain), or onto the Mixer to append a new strip.samples/ folder are sounds, with no setup. New
files appear without a reload.samples('github:user/repo')) or from any address
(samples('https://.../strudel.json')) are listed before you press play, get their
own group, and are copied into your project so they play offline.Snippets
.strudel files in your lib/ folder, grouped by category,
with the tags of each snippet. Select one to read its description and code.Projects
.strudel file of your project, by folder.[str]dltn Live[code] does not imitate Strudel. It hosts the upstream Strudel packages, so you get the same editor and engine as on strudel.cc, and new Strudel features arrive with a version bump.

The bottom panel has a tab called Mixer. It shows the song in front: the Master first,
then a strip for each part, with its fader on a level meter, M and S, a knob button under
every fader, and orange cables for the sidechain. Drag from the jack at the foot of a strip
onto another strip and the first ducks the second; the code gets .duck("2") and, if
needed, an .orbit() of its own for the target. Drop any instrument from the Browser onto
the Mixer strip area to append a new strip. Every change is an edit of the song, so
Undo takes it back and the song stays plain Strudel.
Every slider of a song can follow a knob of your MIDI controller. Click the small knob
beside its line, or under its fader: it turns red while it listens. Turn a knob and it turns
green, and the code says .knob(74). From then on the knob moves the slider, the sound, the
number in the code and the fader in the Mixer. A knob that sits somewhere else waits until
it reaches the slider's value, so the sound never jumps; a dim handle on the fader shows
where it is meanwhile.


Under Plugins > FM-1 Synths, all FM-1 synths live in one unified category divided into
Installed and Available (hover or click ? for a technology guide, or + to add
custom firmware repositories by URL). Every row is flagged with its technology badge and
filterable via Runtime/... and Repo/... chips: WASM (VIBE .wasm builds played as
s("vibefm1:<id>") with live screen thumbnails and Devices tab panels), FWSC (real
FM-1 .fwsc firmwares from The Firmware Hub and custom repos, run via Run Native
240 MHz JIT or in-editor s("fm1:<id>")), EXT (external synth repositories like
shrub.audio for SHRUB), and MIDI (Hardware MIDI profiles for a real M-VAVE FM-1).
Experimental USB-MIDI SysEx flashing to hardware is off by default behind
strdltn.experimental.fm1Flash - use at your own risk; the authors take no responsibility
for bricked or damaged hardware.
The Browser opens in four panes: Controls at the top (transport, Undo/Redo,
Back/Forward history, search, preview toggle, colors and Built-in filter), Library,
Contents (Results while searching), and Reference. Single-click any sound or
synth to hear a 1-loop preview with smooth fade-out, even with no song open. Drag any row
into the editor to insert a full playable $name: line (or an effect onto an existing
chain), or drop it onto the Mixer to add a strip.
Your own samples need no setup. Put audio files in a samples/ folder:
samples/
kick/
kick1.wav
kick2.wav
snare/
snare.wav
Now s("kick snare") plays them, and s("kick:1") picks the second kick.
A song can also load a pack from GitHub with samples('github:user/repo'), or from any
address with samples('https://.../strudel.json'). [str]dltn Live[code] sees that line when you
open the file: the pack shows up in the Browser at once, and it is copied into a
.strdltn/ folder of your project so it plays without the network next time.
Put .strudel files in a lib/ folder. The Library shows them under Snippets, by folder.
Rest the mouse on one to see what it is and its code. A button inserts it at the cursor.
A snippet describes itself in comments at the top of the file:
// @title Four on the floor
// @category drums
// @details Kick on every beat, clap on 2 and 4, open hat on the off beat.
// @tags house, techno, 909
// @by alienmind
s("bd*4, ~ cp ~ cp, [~ oh]*4").bank("RolandTR909")
Only the code is inserted. The template comes with a starting library: drums, bass lines, chords, melodies, effects, helper functions and song skeletons.
When the code has an error, the song keeps playing what worked last. The error is underlined in the native editor and listed in the Problems view, and the status bar turns red with the message. The status bar also says whether the song plays, and a click on it plays or stops.
One button in the title bar switches a file between two editors:

The stage shows the visuals of the song. Each one is named from your code: the name of
the pattern ($kick:), the name of a variable, the comment above the line, or the code
itself. The sliders are in the Mixer.
Hydra works as it does on strudel.cc. Call initHydra() and
the visuals draw behind your code, driven by your pattern.

strdltn.vsix from the
latest release.... at the top, and choose
Install from VSIX...song.strudel, type s("bd sd, hh*4"), click in the code and
press Ctrl+Enter.... and New with options.demo.strudel, click in the code and press Ctrl+Enter.The sound comes out of your browser.
| Key | Does |
|---|---|
| Ctrl+Enter | Play, or update the playing pattern |
| Ctrl+. | Stop the song in front. Again: stop the song that plays in another tab |
| Ctrl+Alt+M | Switch between the Strudel editor and the native editor |
| Ctrl+Alt+K | Map a MIDI knob to the slider under the cursor |
| Ctrl+F, Ctrl+H, Ctrl+G | Find, replace, go to a line in the Strudel editor |
On a Mac use Cmd in place of Ctrl. The user manual has all of them.
.vsix file.All of the music making is Strudel, by Felix Roos, Alex McLean and the Strudel contributors. [str]dltn Live[code] is only the VS Code part around it.
The template includes coastline by eddyflux, from Strudel's own examples, and "Array
(Lil Data Edit)" by DJ_Dave. Several snippets use techniques learned from Switch Angel
and from the Art Haus live coding workshop, and her trance gate is a snippet of its own.