LILA
STRUDEL TAGS
View .md

Track Metadata, `@scene` Chapters & Export Safety

Strudel.cc-compatible song header tags (`@title`, `@by`, `@genre`, `@album`, `@license`), multi-scene IDE Outline markers (`// @scene`), parallel tracks (`$:` / `_$:`), and LILA inspection suppression (`@strudel-ignore`, `mini-off`).

1. Song Header Metadata (// @title, @by, @genre, @license, @tag)

Place comment metadata tags at the top of your script (in line // or block /* */ comments). Sandbox automatically syncs @title with your creation title bar.

Comment TagExampleEffect in LILA
// @title ...// @title Night DriveSets creation title on cards, embeds & exports
// @by ...// @by Ada LovelaceCredits composer/artist attribution
// @genre ...// @genre Ambient FocusFeeds feed search, discovery & metadata panel
// @album ...// @album Night SessionsGroups related creations cleanly
// @license ...// @license CC-BY-4.0Embeds open attribution SPDX tag
// @details ...// @details Wear stereo headphonesDisplays creator listening notes
// @url ...// @url https://example.comStores reference project URL
// @tag ...// @tag binaural, focusAdds comma-separated discovery tags

Complete Metadata Header + Parallel `$:` Tracks

Named parallel tracks (`$drums:`, `$bass:`) and `_$` muted tracks alongside full header metadata.

// @title Harbor Rain Sketch
// @by LILA Creator
// @genre Lo-Fi Ambient
// @license CC-BY-4.0
// @tag warm, rhodes, focus

setCpm(28);

$drums: s("bd ~ ~ bd, ~ sd ~ ~, hh*8?").gain(0.7);
$chords: chord("<Fm9 Bb13 Ebmaj7 Cm7>").voicing().s("lila_rhodes").room(0.55).gain(0.42);
_$sparkle: n("0 4 6").scale("Eb5:major").s("lila_kalimba").gain(0.32);

2. Multi-Scene Timelines (// @scene Name (8 bars)) & Bundling

Divide long live sets or multi-part compositions with // @scene headers. The IDE Structure & Outline drawer (Alt+7) jumps between scenes, and Multi-Scene Timeline lets Ask LILA edit individual scenes while marking unchanged scenes // UNCHANGED.

  • Authoring Marker: // @scene Chorus Drop (8 bars) appears immediately inside the IDE Outline tree and breadcrumbs.
  • Named & Muted Tracks: $drums: ..., $bass: ..., $lead: ... create parallel stacks without nested parentheses; _$pad: ... or _$: ... mutes a track non-destructively.
  • Track Metadata Modal: Open More -> Track Metadata (or Alt+Enter) to edit header tags visually without typing comments by hand.

3. Suppressing Validator Inspections (@strudel-ignore, mini-off)

When intentionally crafting experimental polyrhythms or dynamic JS strings, suppress LILA’s static AST validator selectively on the line above or trailing the call.

  • // @strudel-ignore <CODE> — silences a single specific inspection on the next line (or omit <CODE> to ignore any inspection on that line).
  • // @strudel-ignore-file — suppresses LILA advisory warnings across the whole script.
  • // mini-off — disables mini-notation bracket/rest linting on that specific line.

4. Live-Synced Validator & Quick-Fix Reference

Generated directly from STRUDEL_DIAGNOSTIC_DOCS. Every diagnostic listed here offers a 1-click Quick Fix inside the editor (Alt+Enter).

Diagnostic CodeIssueWhy It HappensValid Fix
STRUDEL_TEMPLATE_INTERPOLATIONTemplate Literal Interpolation Unsupported in StrudelStrudel’s mini-notation compiler pre-parses pattern strings before normal JavaScript executes. Interpolation expressions like ${density} inside backticks cannot be lowered reliably by @strudel/transpiler.const n = 4 s("bd*" + n + " sd")
STRUDEL_BACKTICK_STRINGBacktick String Instead of Double QuotesWhile static backtick strings work in some environments, Strudel conventions and AST rewrite passes expect canonical double quotes "..." for mini-notation.note("c3 eb3 g3")
STRUDEL_SINGLE_QUOTE_CHAINMethod Chained on Single-Quoted String@strudel/transpiler only wraps double-quoted strings ("...") into mini(...) Pattern objects. Single-quoted '...' remains a plain JS string, so calling .note() or .s() on it throws TypeError: is not a function."c3 eb3 g3".note().s("piano")
STRUDEL_SINGLE_QUOTE_MINISingle Quotes Inside Pattern FunctionCanonical Strudel idiom uses double quotes "..." for mini-notation patterns. Consistent double quotes avoid surprises when chaining or copying fragments.s("bd*4 [sd cp]")
STRUDEL_EMPTY_MINI_STRINGEmpty Mini-Notation Pattern StringPassing "" or whitespace-only " " into s(), note(), or chord() causes Strudel’s mini-notation parser to throw a syntax error at runtime.s("~")
STRUDEL_UNBALANCED_MINI_BRACKETSUnbalanced Mini-Notation DelimitersEvery [...], <...>, {...}, or Euclidean (...) inside mini-notation must open and close cleanly. A missing or mismatched bracket crashes the whole song evaluation.s("bd [hh oh cp]")
STRUDEL_HALLUCINATED_METHODNon-Strudel Method Name (AI / Tone.js Hallucination)General-purpose LLMs often invent Tone.js, Sonic Pi, or WebAudio method names (like .reverb(), .volume(), .lowpass(), .adsr(), .play()) that do not exist on Strudel Pattern.s("sawtooth").lpf(900).room(0.4).gain(0.8)
STRUDEL_UNKNOWN_PATTERN_METHODUnrecognized Strudel Pattern MethodThis method name is not part of the qualified Strudel 1.3.0 runtime method list and will likely throw at runtime.note("c3 g3").gain(0.8)
STRUDEL_HALLUCINATED_FUNCTIONUnknown Top-Level Strudel FunctionStrudel sets tempo with setCpm(bpm / 4) or setCps(cps), selects sounds with s("..."), and layers with stack(...) rather than setBpm(), sample(), or parallel().setCpm(128/4) stack(s("bd"), note("c2 g2"))
STRUDEL_HALLUCINATED_SOUNDUnregistered Sound / AI Synth AliasFriendly AI descriptions like "acid_bass", "warm_pad", or "epiano" are not built into Strudel’s default sample map. LILA Aether HD provides dedicated high-definition procedural voices under lila_*.note("c2 eb2").s("lila_acid")
STRUDEL_CHORD_MISSING_VOICINGchord() Pattern Missing .voicing()chord("Cm7 Abmaj7") produces abstract chord-symbol values, not playable notes. Without .voicing(), sending those symbols straight to .s("lila_rhodes") produces silence or default pitch.chord("<Cm7 Fm7>").voicing().s("lila_rhodes")
STRUDEL_CLIPPING_GAINExcessive .gain() May Clip Master OutputValues above 2.0 multiply digital amplitude far beyond unity (1.0), pushing multiple stacked layers into harsh hard-clipping.s("lila_kick*4").gain(0.92)
STRUDEL_OUT_OF_KEY_NOTESNotes Outside Active Document ScaleThe file defines an active key (.scale("C:minor")), and one or more literal note pitches inside note("...") fall outside that scale.note("c3 eb3 f3 g3").scale("C:minor")
STRUDEL_UNSUPPORTED_JS_CONSTRUCTUnavailable Browser / Module ConstructLILA executes Strudel inside an isolated browser sandbox: ES module import/export, window/document DOM access, fetch(), and Tone.js globals are unavailable in the audio evaluation scope.s("bd").ply(4)
STRUDEL_SILENT_NORMALIZED_LPFFilter Cutoff Below 20 Hz (Likely Normalized 0..1 Mistake)Many synths take filter cutoff as 0..1, but Strudel .lpf(hz) and .hpf(hz) expect frequencies in Hertz (20–20000). Passing .lpf(0.5) sets a 0.5 Hz low-pass filter, silencing all audible audio.note("c2 eb2").s("lila_acid").lpf(2100)
STRUDEL_ZERO_TIME_FACTORZero Speed Factor Freezes Pattern CycleCalling .fast(0) or .slow(0) multiplies cycle rate or duration by zero, preventing Strudel from advancing pattern queries.s("hh*8").fast(1)
STRUDEL_DUPLICATE_CHAIN_METHODOverwritten Single-Value Method in Same ChainIn Strudel control chains, chaining the same control twice at the same chain depth causes the second call to silently overwrite the first (outside .every(4, x => ...) callbacks).s("hh*8").room(0.2).gain(0.4)
STRUDEL_ORPHAN_DUCKORBITSidechain .duckorbit(N) Has No Matching .orbit(N) Target.duckorbit(2) ducks audio routed to Orbit Bus 2. If no bass, chord, or pad layer has .orbit(2), your kick triggers sidechain compression against an empty bus.stack(s("bd*4").duckorbit(2), note("c2").s("lila_808").orbit(2))
STRUDEL_NEGATIVE_PANNegative Stereo Pan Outside Strudel 0..1 RangeWebAudio StereoPannerNode uses -1..1, whereas Strudel .pan(pos) maps 0 = hard left, 0.5 = center, and 1 = hard right.s("hh*8").pan(0.25)
STRUDEL_DUPLICATE_TEMPOOverwritten Top-Level Tempo CallCalling setCpm() or setCps() multiple times at top level causes only the final tempo assignment to take effect.setCpm(140/4)
STRUDEL_MULTI_ARG_MINI_CALLExtra Comma Arguments Ignored in Mini-Notation Calls(), note(), and n() accept a single mini-notation string argument. Extra comma-separated strings like note("c3", "eb3", "g3") are ignored at runtime.note("c3 eb3 g3").s("piano")
STRUDEL_INVALID_EUCLID_ARGSOut-of-Range Euclidean Pulses or StepsEuclidean rhythms require step count n between 1 and 64 and pulse count k <= n. Out-of-bounds values can cause runaway pattern expansion or invalid rhythms at runtime.s("bd(8,8)")
STRUDEL_UNLABELED_MULTI_STATEMENTMultiple Bare Patterns (Earlier Ones Silently Ignored)JavaScript evaluates each top-level statement in order and only returns the final expression. Writing two bare patterns (s("bd*4") followed by s("hh*8")) without stack(...) or $: labels causes Strudel to drop all earlier layers silently.$: s("bd*4") $: s("hh*8")
STRUDEL_UNAPPROVED_TRACK_LABELUnapproved Track Label PrefixStrudel only recognizes parallel track labels prefixed with $ ($:, $drums:, $bass:), d1:–d16:, or mute prefixes _$: / _:. A bare JS label like drums: is treated as a JS label and does not play as a parallel track.$drums: s("bd*4")
STRUDEL_SIGNAL_WITHOUT_RANGEUnscaled Continuous Signal in Filter Cutoff (0..1 Hz)Strudel signals (sine, saw, tri, perlin, rand) output normalized values between 0 and 1. Passing .lpf(sine) without .range(min, max) sweeps your low-pass filter between 0 Hz and 1 Hz, completely silencing all audio.note("c2 eb2 g2").s("sawtooth").lpf(sine.range(300, 2400).slow(4))
STRUDEL_TIDAL_CHORD_QUOTE_QUIRKTidalCycles Single-Quote Chord Notation Inside note()TidalCycles uses quotes inside strings like "c3'maj7", whereas Strudel expresses simultaneous chords with bracket notation "[c3,e3,g3,b3]" inside note() or named chord symbols inside chord("Cmaj7").voicing().note("[c3,e3,g3,b3] [eb3,gb3,bb3,db4]").s("piano")
STRUDEL_MINI_SYNTAX_QUIRKMini-Notation Syntax Error Inside Pattern StringStrudel parses double-quoted pattern strings using @strudel/mini, which often emits cryptic [mini] parse error messages at runtime without showing the exact column. Common culprits are dangling *// operators, *0//0, empty [] groups, or // comments typed inside quotes.s("bd hh ~")
STRUDEL_N_SYNTH_WITHOUT_SCALEScale-Degree n() With Synth Voice Missing .scale()n("0 2 4") selects scale degree indices, whereas .s("sawtooth") or .s("lila_rhodes") synthesizes pitched tones. Without .scale("C3:minor") on the pattern or file, Strudel interprets 0 2 4 as raw unscaled indices rather than tonal scale degrees.n("0 2 4 7").scale("C3:minor").s("sawtooth")
STRUDEL_RUNAWAY_FEEDBACKRunaway Delay Feedback or Extreme Reverb TailSetting .delayfb(1) or >= 0.99 causes delay echoes to accumulate endlessly and clip audio output, while .room() or .size() values above 1.5 push the reverb feedback matrix into muddy self-saturation.note("c3 eb3").s("lila_rhodes").delay(0.5).delayfb(0.65)
STRUDEL_EXTREME_DENSITYExtreme Event Subdivision / CPU Spike RiskHigh cycle multipliers like .fast(64), .ply(32), or "hh*64" schedule dozens of simultaneous WebAudio/Wasm events per step, causing UI audio dropouts, voice stealing, and glitching.s("hh*8").ply(2)
STRUDEL_UNUSED_CONST_PATTERNDeclared Pattern Variable Never Routed to PlaybackTop-level bindings like const lead = note("c4 eb4") define a pattern in memory, but Strudel only plays expressions included in the final stack(...) or labeled with $:.const bass = note("c2 g2").s("sawtooth") $: s("bd*4") $: bass
STRUDEL_SUB_BASS_MUDExcessive Reverb or Stereo Width on Sub-BassLong .room() tails (> 0.3) or stereo .jux() splits on lila_sub, lila_808, or sub-octave bass notes cause low-end phase cancellation and muddy mixes on speakers and clubs.note("c1 ~ eb1 ~").s("lila_808").room(0.08)
STRUDEL_UNUSED_LIVE_CONTROLDeclared Live Control Never Referenced in CodeInteractive controls (slider(), select(), pills(), toggle(), stepper()) render widgets above the pattern, but they have no sonic effect until you pass their variable into a parameter like .lpf(cutoff).const cutoff = slider(1200, 200, 4000, 20) $: note("c3 eb3").s("lila_saw").lpf(cutoff)
STRUDEL_INVALID_CHORD_SYMBOLUnrecognized Chord Symbol in chord()Strudel’s .voicing() dictionary parses standard jazz/pop chord suffixes like Cmaj7, Fm9, G7alt, or Bm7b5. Misspelled suffixes like Cma7 or Amn7 fail silently or drop notes.chord("Cmaj7 Am7").voicing().s("piano")

Booting Strudel Engine...

Strudel Evaluation Terminal (0)

Unknown

Unknown Artist