transpile_pattern
Transpile pattern source via StrudelEngine; returns transpiled code or syntax error
How to use it
transpile_pattern is exposed by the Live Coding Music MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the transpile_pattern tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Live Coding Music MCP
npx playwright install chromiumOther tools in Live Coding Music MCP (26)
Gemini-backed pattern assistance.
Audio analysis on the currently-playing pattern.
Static analysis (events/cycle, complexity, optional BPM) without browser playback
Record audio output from the live Strudel session.
Interact with the visible Strudel browser window.
Generate, write, and play a complete pattern in one step. Auto-initializes default browser if needed.
Inspect server and browser state.
Mutate the current session pattern.
Add or remove a Strudel effect on the current session pattern.
Export current pattern to MIDI file. Parses note(), n(), and chord() functions.
Generate a single instrumental layer and append it to the current session pattern.
Generate a rhythmic pattern and append it to the current session.
Get current pattern code
Navigate or inspect the pattern edit history.
Convert a .mid file into a playable Strudel pattern (Phase 1: literal transcription, #201).
Initialize Strudel in browser
Music-theory queries.
Persist patterns to disk and read them back.
Control transport on the current session.
Enumerate events the pattern would emit between two cycle indices (max 16 cycles)
Manage isolated Strudel browser sessions (multi-session, #108).
Set BPM
Shape the current pattern along one of three high-level dimensions.
Apply a single transform op to the current session pattern.
Validate pattern syntax against the in-process StrudelEngine (no browser required)
Validate pattern with runtime error checking (monitors Strudel console for errors)