Raw schema
{
"type": "object",
"properties": {
"code": {
"type": "string",
"maxLength": 65536,
"description": "Strudel pattern code. Uses TidalCycles mini-notation in JavaScript. Use stack() to layer drums, bass, and melody. Set tempo with setcps(bpm/60/4) or use the bpm parameter. The REPL plays the LAST expression: setup lines (await initHydra(), all(), setcps()) go BEFORE the pattern. Double quotes are mini-notation — use single quotes for plain strings and URLs. One draw method per pattern; pass a.fft values as functions (() => a.fft[0])."
},
"title": {
"description": "Pattern title displayed in the widget header (e.g. 'Midnight Rain').",
"type": "string"
},
"bpm": {
"description": "Tempo in BPM (40-300). Converts to setcps() automatically.",
"type": "number",
"minimum": 40,
"maximum": 300
},
"autoplay": {
"description": "Start playing immediately (default: true). May require user click due to browser autoplay policy.",
"type": "boolean"
},
"visuals": {
"description": "A ready-made visual for code that has none of its own: pianoroll, punchcard, scope or spectrum (drawn behind the code), or hydra-kaleid, hydra-pulse, hydra-wash or hydra-feed (shader backgrounds). It only fills a layer the code leaves empty, and shaders are skipped for viewers who prefer reduced motion. Your own visual is the better result (topics 'visuals' and 'hydra').",
"type": "string",
"enum": [
"none",
"pianoroll",
"punchcard",
"scope",
"spectrum",
"hydra-kaleid",
"hydra-pulse",
"hydra-wash",
"hydra-feed"
]
},
"session": {
"description": "Optional: keep this player open as a live session. update-session then swaps new code in on the bar, and get-session reports what played and what the user did. For a jam, or a piece you change while it plays. Give the user something to play — taps, a fader, a grid (topic 'interactive') — or they answer by editing the code and pressing Pass. The log is kept until 2 hours idle.",
"type": "boolean"
},
"theme": {
"description": "Editor colour scheme. It also sets the ground the visuals sit on, so pick a dark one when the visual is the point (e.g. 'nord', 'sonicPink', 'tokyoNight').",
"type": "string",
"enum": [
"strudelTheme",
"algoboy",
"archBtw",
"androidstudio",
"atomone",
"aura",
"bbedit",
"blackscreen",
"bluescreen",
"bluescreenlight",
"CutiePi",
"darcula",
"dracula",
"duotoneDark",
"eclipse",
"fruitDaw",
"githubDark",
"githubLight",
"greenText",
"gruvboxDark",
"gruvboxLight",
"sonicPink",
"materialDark",
"materialLight",
"monokai",
"noctisLilac",
"nord",
"redText",
"solarizedDark",
"solarizedLight",
"sublime",
"teletext",
"tokyoNight",
"tokyoNightDay",
"tokyoNightStorm",
"vscodeDark",
"vscodeLight",
"whitescreen",
"xcodeLight"
]
}
},
"required": [
"code"
],
"$schema": "https://json-schema.org/draft/2020-12/schema"
}