Art and animation, written as code. Illustrations, loops, interactive web art, launch-videos and scored films in dozens of styles, identical on every render.
TypeScript agent-skillsanimationcanvasclaude-codeclaude-pluginclaude-skillscodex-plugincreative-codecreative-codingcreative-toolsdeterministicgenerative-arthand-drawnillustrationlaunch-videomotion-designmotion-graphicspluginprocedural-generationskill
music: lo-fi electronic as a named style and builder API; launchLofi3 rewritten on it (audio bit-identical)
Alex Greenshpun0eadc489e6f1
diff --git a/skills/anidoodle/engine/src/canvas-core/music/index.ts b/skills/anidoodle/engine/src/canvas-core/music/index.tsindex b3a437a..f9bb6e4 100644--- a/skills/anidoodle/engine/src/canvas-core/music/index.ts+++ b/skills/anidoodle/engine/src/canvas-core/music/index.ts@@ -8,6 +8,7 @@ export * from "./render";export * from "./meter";export * from "./guards";export * from "./score-text";+export * from "./lofiElectronic";export * as instruments from "./instruments";import { nocturne, pianoPhrase8 } from "./pieces/nocturne";import { launchLofi, launchLofi2, launchLofi3 } from "./pieces/launch";diff --git a/skills/anidoodle/engine/src/canvas-core/music/lofiElectronic.ts b/skills/anidoodle/engine/src/canvas-core/music/lofiElectronic.tsnew file mode 100644index 0000000..f028f8f--- /dev/null+++ b/skills/anidoodle/engine/src/canvas-core/music/lofiElectronic.ts@@ -0,0 +1,130 @@+// LO-FI ELECTRONIC, the style as an API. Chill, upbeat, clean electronic built on the lofiKit voices+// (warmPad, softPluck, sub) and the drum kit: a 4-bar chord loop, sections that add and remove+// layers, the kick pumping the pad, a dotted-eighth ping-pong on the hook, tape barely there.+// No electric piano, no vinyl, no bit-crush (Alex: "upbeat, clear, not noisy"). The mix is set by+// measured stem RMS against LOFI_STEM_TARGETS (LUFS alone once hid a sub 7-10 dB too hot).+//+// const piece = lofiElectronic({ bpm: 96, key: "D", progression: [...4 chords], home: 0,+// sections: [{ kind: "intro", bars: 2 }, { kind: "hook", bars: 8, stretch: true }, { kind: "outro", bars: 2 }] });+//+// Section kinds and their layers (hook / sparkle flags add the lead and the high plucks anywhere):+// intro pad only (the `intro` chords if given) groove pad, sub, full drums+// hook groove + hook half pad, sub, half-time drums+// breakdown pad only, drums and sub out drop groove + hook (the landing)+// outro the home chord held, sub on the home root, the home note on the last bar+// Harmony phase: bar `land` (a bar number or a section id; default the last drop, else the first+// bar after the intro) plays progression[home]. `refit(seconds)` adds or removes whole loop cycles+// of the `stretch` section so a film score still ends on its outro, never chopped at the last frame.+import { line, type Note, type Piece, type Part, type Role } from "./plan";+import type { ModeId } from "./theory";+import type { MoodId } from "./tables";+import { perform } from "./perform";++/** One chord of the loop: pad voicing (notation chord), sub root and the walk note into the next bar, optional hook and sparkle bars. */+export type LofiChord = { name: string; pad: string; root: string; walk: string; hook?: string | string[]; sparkle?: string };+export type LofiKind = "intro" | "groove" | "hook" | "half" | "breakdown" | "drop" | "outro";+export type LofiSection = { kind: LofiKind; bars: number; id?: string; hook?: boolean; sparkle?: boolean; stretch?: boolean };+export type LofiDrums = { kick: [string, string]; snare: string; ghost: [string, string]; hats: string; halfKick: string; halfSnare: string; halfHats: string };+export type LofiSpec = {+ title?: string; seed?: number; bpm: number; key: string; mode?: ModeId; mood?: MoodId;+ progression: LofiChord[]; home?: number; land?: number | string; intro?: { name: string; pad: string }[]; outroNote?: string;+ sections: LofiSection[];+ /** a seamless loop: no final ritard, no cadence relax, render it with renderLoop */ loop?: boolean;+ swing?: number; dyn?: [number, number]; tail?: number;+ /** gainDb per part id (pad, lead, sparkle, sub, kick, snare, ghost, hat), set by measuring stems */ levels?: Record<string, number>;+ drums?: Partial<LofiDrums>;+};++/** Stem RMS targets, dBFS over each stem's active samples (unmastered, pre-room). Calibrated on the approved launch score. */+export const LOFI_STEM_TARGETS: Record<string, number> = { kick: -14, snare: -20, hat: -28, sub: -18, pad: -21, lead: -16.5, sparkle: -24 };++const HATS16 = Array.from({ length: 16 }, (_, i) => `C4:.25@${[0.85, 0.35, 0.6, 0.4][i % 4]}`).join(" ");+export const LOFI_DRUMS: LofiDrums = {+ kick: ["C4:1.5 C4:[email protected] C4:[email protected]", "C4:1.5 C4:[email protected] C4:[email protected] C4:[email protected] C4:[email protected]"], snare: "r:1 C4:2 C4:1",+ ghost: ["r:3.75 C4:[email protected]", "r:1.75 C4:[email protected] r:2"], hats: HATS16,+ halfKick: "C4:2 r:2", halfSnare: "r:2 C4:2", halfHats: "C4:[email protected] C4:[email protected] C4:[email protected] C4:[email protected]",+};++const HOOKED: LofiKind[] = ["hook", "drop"], DRUMMED: LofiKind[] = ["groove", "hook", "drop"], SUBBED: LofiKind[] = ["groove", "hook", "drop", "half"];+const mod = (a: number, m: number) => ((a % m) + m) % m;++/** Where each section starts, in bars. */+export const lofiLayout = (sections: LofiSection[]) => { let b = 0; return sections.map((s, i) => { const from = b; b += s.bars; return { s, id: s.id ?? `${s.kind}${i}`, from, to: b }; }); };++export const lofiElectronic = (spec: LofiSpec): Piece => {+ const lay = lofiLayout(spec.sections), B = lay[lay.length - 1].to, last = B - 1, P = spec.progression, len = P.length, home = spec.home ?? 0;+ const dr = { ...LOFI_DRUMS, ...spec.drums };+ const firstBody = lay.find((x) => x.s.kind !== "intro")?.from ?? 0, drops = lay.filter((x) => x.s.kind === "drop");+ const land = typeof spec.land === "number" ? spec.land : typeof spec.land === "string" ? lay.find((x) => x.id === spec.land)!.from : drops.length ? drops[drops.length - 1].from : firstBody;+ const anchor = spec.land !== undefined || drops.length ? home : 0; // with no landing asked for, the loop starts at its first chord+ const ci = (b: number) => mod(b - land + anchor, len), pass = (b: number) => Math.floor((b - land + anchor) / len);+ const at = (b: number) => lay.find((x) => b >= x.from && b < x.to)!;+ const H = P[home], outroNote = spec.outroNote ?? `${spec.key.replace(/m$/, "")}5`;+ const bars = (role: Role, v: number, fn: (b: number) => string | null, extra: { roll?: number } = {}): Note[] => {+ const out: Note[] = [];+ for (let b = 0; b < B; b++) { const s = fn(b); if (s) out.push(...line(b * 4, s, { role, v, bpb: 4, ...extra })); }+ return out;+ };+ const kind = (b: number) => at(b).s.kind, introIdx = (b: number) => b - at(b).from;+ const introChord = (b: number) => (kind(b) === "intro" && spec.intro?.length ? spec.intro[introIdx(b) % spec.intro.length] : null);+ const hookOn = (b: number) => at(b).s.hook ?? HOOKED.includes(kind(b));+ const pickHook = (c: LofiChord, b: number) => (Array.isArray(c.hook) ? c.hook[mod(pass(b), c.hook.length)] : c.hook) ?? null;++ const pad = bars("accomp", 0.62, (b) => { const ic = introChord(b); return kind(b) === "outro" ? `${H.pad}:[email protected]` : ic ? `${ic.pad}:[email protected]` : `${P[ci(b)].pad}:4`; }, { roll: 0.03 });+ const sub = bars("bass", 0.85, (b) => (kind(b) === "outro" ? `${H.root}:4` : SUBBED.includes(kind(b)) ? `${P[ci(b)].root}:3 r:.5 ${P[ci(b)].walk}:.5` : null));+ const drum = (full: (b: number) => string | null, half: string | null) => (b: number) => (DRUMMED.includes(kind(b)) ? full(b) : kind(b) === "half" ? half : null);+ const kick = bars("drum", 0.85, drum((b) => dr.kick[b % 2], dr.halfKick));+ const snare = bars("drum", 0.7, drum(() => dr.snare, dr.halfSnare));+ const ghost = bars("drum", 0.5, drum((b) => dr.ghost[b % 2], null));+ const hats = bars("drum", 0.5, drum(() => dr.hats, dr.halfHats));+ const lead = bars("melody", 0.72, (b) => (kind(b) === "outro" ? (b === last ? `${outroNote}:4` : null) : hookOn(b) ? pickHook(P[ci(b)], b) : null));+ const sparkle = bars("color", 0.5, (b) => (at(b).s.sparkle && kind(b) !== "outro" ? P[ci(b)].sparkle ?? null : null));+ const harmony = Array.from({ length: B }, (_, b) => ({ t: b * 4, name: kind(b) === "outro" ? H.name : introChord(b)?.name ?? P[ci(b)].name }));++ const bpm = spec.bpm, DE = (60 / bpm) * 0.75, lv = spec.levels ?? {};+ const g = (id: string, d: number) => lv[id] ?? d;+ const parts: Part[] = [+ { id: "pad", inst: "warmPad", role: "accomp", notes: pad, gainDb: g("pad", -3), opts: { cut: 2600, attack: 0.5, release: 1.4, spread: 0.55 }, send: 0.35 },+ { id: "lead", inst: "softPluck", role: "melody", notes: lead, gainDb: g("lead", 6), opts: { decay: 0.42, bright: 6000, delay: DE, feedback: 0.28, delayMix: 0.24 }, send: 0.25 },+ { id: "sparkle", inst: "softPluck", role: "color", notes: sparkle, gainDb: g("sparkle", 8), opts: { decay: 0.35, bright: 5200, pan: 0.35, delay: DE, feedback: 0.3, delayMix: 0.35 }, send: 0.6 },+ { id: "sub", inst: "sub", role: "bass", notes: sub, gainDb: g("sub", -6), opts: { cut: 150 } },+ { id: "kick", inst: "kick", role: "drum", notes: kick, gainDb: g("kick", 0.5), send: 0.1 },+ { id: "snare", inst: "snare", role: "drum", notes: snare, gainDb: g("snare", 8), send: 0.3 },+ { id: "ghost", inst: "snare", role: "drum", notes: ghost, opts: { rim: true }, gainDb: g("ghost", 4), send: 0.2 },+ { id: "hat", inst: "hat", role: "drum", notes: hats, opts: { pan: 0.25 }, gainDb: g("hat", 20), send: 0.1 },+ ];+ return {+ title: spec.title ?? `lo-fi electronic in ${spec.key}`, seed: spec.seed ?? 2027, tail: spec.tail ?? 3.2, harmony, parts,+ plan: { style: "lofiElectronic", tempo: bpm, meter: "4/4", swing: spec.swing ?? 0.54, ritard: spec.loop ? 1 : 0.92, loop: spec.loop,+ sections: [{ id: "a", bars: B, mood: spec.mood ?? "calm", key: spec.key, mode: spec.mode ?? "major", melody: ["stepwise", "hook"], dyn: spec.dyn ?? [0.62, 0.66], ending: "tail", repeatable: false }] },+ fx: { clean: true, duck: { by: "kick", parts: ["pad", "sparkle"], depth: 0.38, release: 0.24 }, tape: { wowCents: 2.5, wowHz: 0.4, flutterCents: 0, flutterHz: 6, drive: 1.02 } },+ stemTargets: LOFI_STEM_TARGETS,+ arrangement: lay.map((x) => ({ id: x.id, kind: x.s.kind, from: x.from, bars: x.s.bars })),+ refit: spec.loop ? undefined : (seconds: number) => lofiElectronic(refitLofi(spec, seconds)),+ };+};++/**+ * The same arrangement for a film `seconds` long: the `stretch` section (default the longest hook,+ * groove or drop section) gains or loses whole loop cycles so, at the written bpm, the last onset+ * lands nearest `seconds - tail`. fitToDuration then trims the tempo by the remaining few percent.+ * Harmony stays in phase because only whole cycles move; a numeric `land` after the stretch moves with it.+ */+export const refitLofi = (spec: LofiSpec, seconds: number): LofiSpec => {+ const secs = spec.sections, len = spec.progression.length, want = seconds - (spec.tail ?? 3.2);+ let si = secs.findIndex((s) => s.stretch);+ if (si < 0) secs.forEach((s, i) => { if (["hook", "groove", "drop"].includes(s.kind) && (si < 0 || s.bars > secs[si].bars)) si = i; });+ if (si < 0 || want <= 0) return spec;+ const from = lofiLayout(secs)[si].from, b0 = secs[si].bars;+ let best: { spec: LofiSpec; cost: number } | null = null;+ for (let k = -Math.floor((b0 - 1) / len); k <= 64; k++) {+ const bars = b0 + k * len; if (bars < 1) continue;+ const land = typeof spec.land === "number" && spec.land >= from + b0 ? spec.land + k * len : spec.land;+ const s2: LofiSpec = { ...spec, land, sections: secs.map((s, i) => (i === si ? { ...s, bars } : s)) };+ const p = lofiElectronic({ ...s2 }), t = perform(p, spec.bpm, { expressive: true }).lastOnset, tempo = spec.bpm * (t / want);+ const cost = Math.abs(Math.log(tempo / spec.bpm));+ if (!best || cost < best.cost) best = { spec: s2, cost };+ if (tempo > spec.bpm * 1.3) break;+ }+ return best!.spec;+};diff --git a/skills/anidoodle/engine/src/canvas-core/music/pieces/launch.ts b/skills/anidoodle/engine/src/canvas-core/music/pieces/launch.tsindex 7168799..83b4be5 100644--- a/skills/anidoodle/engine/src/canvas-core/music/pieces/launch.ts+++ b/skills/anidoodle/engine/src/canvas-core/music/pieces/launch.ts@@ -14,6 +14,7 @@// [the live page] · 30-33 hook + sparkle [the film] · 34-35 breakdown, drums out [the reveal] ·// 36 everything back [All in pure code.] · 37-38 outro, Cmaj9 held [the end card].import { line, type Note, type Piece, type Role } from "../plan";+import { lofiElectronic, type LofiChord, type LofiSpec } from "../lofiElectronic";export const LAUNCH_BPM = 90, LAUNCH_BARS = 39;const L = (t: number, s: string, role: Role, v = 0.7, extra: { roll?: number } = {}) => line(t, s, { role, v, bpb: 4, ...extra });@@ -66,24 +67,26 @@ export const launchLofi2 = (): Piece => {// 11-13 hook [bricks] · 14-15 half-time [Van Gogh] · 16 sparkle [LOOPS] · 17-21 groove, hook from// 19 [INTERACTIVE, the site] · 22-23 sparkle [FILMS, the film] · 24-25 breakdown [the five words] ·// 26 everything back [All in pure code.] · 27-28 home [the end card].+// Written on the lo-fi electronic style API (lofiElectronic.ts); its audio is bit-identical to the+// hand-written v6 (md5 of renderPiece at 48 kHz d20789f2344e6fff0d2a380c7c7825d2, guarded by tools/music-unit.mjs).export const LAUNCH3_BARS = 29;-export const launchLofi3 = (): Piece => {- const B = LAUNCH3_BARS, last = B - 1, ci = (b: number) => (b < 2 ? -1 : b % 4);- const bars = (fn: (b: number, c: number) => string | null, role: Role, v: number, extra: { roll?: number } = {}): Note[] => { const out: Note[] = []; for (let b = 0; b < B; b++) { const x = fn(b, ci(b)); if (x) out.push(...L(b * 4, x, role, v, extra)); } return out; };- const full: [number, number][] = [[2, 13], [16, 23], [26, 26]], half: [number, number][] = [[14, 15]];- const pad = bars((b, c) => (b >= 27 ? `${PAD[2]}:[email protected]` : c < 0 ? `${PAD_INTRO[b]}:[email protected]` : `${PAD[c]}:4`), "accomp", 0.62, { roll: 0.03 });- const sub = bars((b, c) => (c < 0 || inRanges(b, [[24, 25]]) ? null : b >= 27 ? "C2:4" : SUB[c]), "bass", 0.85);- const kick = bars((b) => (inRanges(b, full) ? KICK[b % 2] : inRanges(b, half) ? "C4:2 r:2" : null), "drum", 0.85);- const snare = bars((b) => (inRanges(b, full) ? "r:1 C4:2 C4:1" : inRanges(b, half) ? "r:2 C4:2" : null), "drum", 0.7);- const ghost = bars((b) => (inRanges(b, full) ? (b % 2 ? "r:1.75 C4:[email protected] r:2" : "r:3.75 C4:[email protected]") : null), "drum", 0.5);- const hats = bars((b) => (inRanges(b, full) ? HATS : inRanges(b, half) ? "C4:[email protected] C4:[email protected] C4:[email protected] C4:[email protected]" : null), "drum", 0.5);- const lead = bars((b, c) => (inRanges(b, [[6, 13], [19, 21], [26, 26]]) ? HOOK[c] : b === last ? "C5:4" : null), "melody", 0.72);- const sparkle = bars((b, c) => (inRanges(b, [[8, 10], [16, 16], [22, 25]]) ? SPARK[c] : null), "color", 0.5);- const harmony = Array.from({ length: B }, (_, b) => ({ t: b * 4, name: b < 2 ? ["Cmaj9", "Am9"][b] : b >= 27 ? "Cmaj9" : ["Dm9", "G13", "Cmaj9", "Am9"][b % 4] }));- const base = launchLofi();- return { ...base, title: "anidoodle launch, cut 3", harmony, plan: { ...base.plan, sections: [{ ...base.plan.sections[0], bars: B }] },- parts: base.parts.map((pt) => ({ ...pt, notes: ({ pad, lead, sparkle, sub, kick, snare, ghost, hat: hats } as Record<string, Note[]>)[pt.id] })) };-};+/** The launch loop ii-V-I-vi in C: Dm9 G13 Cmaj9 Am9, rootless pads, a 4-bar hook and sparkle answer. */+export const LAUNCH_PROGRESSION: LofiChord[] = [+ { name: "Dm9", pad: PAD[0], root: "D2", walk: "A1", hook: HOOK[0], sparkle: SPARK[0] },+ { name: "G13", pad: PAD[1], root: "G1", walk: "D2", hook: HOOK[1], sparkle: SPARK[1] },+ { name: "Cmaj9", pad: PAD[2], root: "C2", walk: "G1", hook: HOOK[2], sparkle: SPARK[2] },+ { name: "Am9", pad: PAD[3], root: "A1", walk: "E2", hook: HOOK[3], sparkle: SPARK[3] },+];+export const launchLofi3Spec = (): LofiSpec => ({+ title: "anidoodle launch, cut 3", seed: 2027, bpm: LAUNCH_BPM, key: "C", progression: LAUNCH_PROGRESSION, home: 2, land: "claim",+ intro: [{ name: "Cmaj9", pad: PAD_INTRO[0] }, { name: "Am9", pad: PAD_INTRO[1] }], outroNote: "C5",+ sections: [+ { kind: "intro", bars: 2 }, { kind: "groove", bars: 4 }, { kind: "hook", bars: 2 }, { kind: "hook", bars: 3, sparkle: true }, { kind: "hook", bars: 3 },+ { kind: "half", bars: 2 }, { kind: "groove", bars: 1, sparkle: true }, { kind: "groove", bars: 2 }, { kind: "hook", bars: 3 },+ { kind: "groove", bars: 2, sparkle: true }, { kind: "breakdown", bars: 2, sparkle: true }, { kind: "drop", bars: 1, id: "claim" }, { kind: "outro", bars: 2 },+ ],+});+export const launchLofi3 = (): Piece => lofiElectronic(launchLofi3Spec());export const launchLofi = (): Piece => {const full: [number, number][] = [[2, 18], [23, 33], [36, 36]], half: [number, number][] = [[19, 22]], last = LAUNCH_BARS - 1;diff --git a/skills/anidoodle/engine/src/canvas-core/music/tables.ts b/skills/anidoodle/engine/src/canvas-core/music/tables.tsindex d86db96..e9c137c 100644--- a/skills/anidoodle/engine/src/canvas-core/music/tables.ts+++ b/skills/anidoodle/engine/src/canvas-core/music/tables.ts@@ -4,7 +4,7 @@import type { ModeId } from "./theory";export type MelodyType = "arpeggio" | "stepwise" | "hook" | "ostinato" | "drone" | "callResponse" | "counterMelody" | "sequence" | "themeTransformation";-export type Family = "piano" | "musicBox" | "celesta" | "mallets" | "pluck" | "harp" | "guitar" | "strings" | "fmBell" | "ePiano" | "chip" | "drums" | "organ" | "bass";+export type Family = "piano" | "musicBox" | "celesta" | "mallets" | "pluck" | "harp" | "guitar" | "strings" | "fmBell" | "ePiano" | "chip" | "drums" | "organ" | "bass" | "pad";export type Range = [number, number];export type Mood = {id: MoodId; modes: ModeId[]; tempo: Range; meters: string[]; harmonicRhythmBars: Range; register: Range;@@ -36,7 +36,7 @@ export const MOODS: Record<MoodId, Mood> = {export const REFUSED_BLENDS: [MoodId, MoodId][] = [["joy", "dread"], ["playful", "melancholy"], ["calm", "tension"]];export const ARCS: Record<string, MoodId[]> = { rise: ["melancholy", "hopeful", "triumph"], turn: ["joy", "tension", "joy"], fallAndReturn: ["tender", "melancholy", "tender"], wonder: ["curious", "awe"], comic: ["playful", "tension", "playful"] };-export type StyleId = "musicBox" | "nocturne" | "drive" | "cinematic" | "chiptune" | "lofi" | "folk" | "minimalist" | "jazz" | "lullaby" | "ambient";+export type StyleId = "musicBox" | "nocturne" | "drive" | "cinematic" | "chiptune" | "lofi" | "lofiElectronic" | "folk" | "minimalist" | "jazz" | "lullaby" | "ambient";export type Style = { id: StyleId; tempo: Range; meters: string[]; families: Family[]; moods: MoodId[]; master: "gentle" | "dense"; arrangement: string; guards: string[]; reverb: "none" | "room" | "hall"; swing?: Range };export const STYLES: Record<StyleId, Style> = {musicBox: { id: "musicBox", tempo: [110, 130], meters: ["12/8"], families: ["musicBox", "fmBell"], moods: ["joy", "curious", "tender", "playful", "wistful"], master: "gentle", reverb: "room", arrangement: "melody -> +bass -> +arp -> +octave sparkle -> bell", guards: ["pluck-only instruments", "more notes, never longer notes"] },@@ -45,6 +45,7 @@ export const STYLES: Record<StyleId, Style> = {cinematic: { id: "cinematic", tempo: [60, 120], meters: ["4/4", "3/4"], families: ["strings", "piano", "harp", "fmBell", "drums"], moods: ["awe", "triumph", "melancholy", "tension", "hopeful"], master: "gentle", reverb: "hall", arrangement: "layered by register slot; crescendos over 4-8 bars", guards: ["max 4 families at once outside climaxes"] },chiptune: { id: "chiptune", tempo: [120, 160], meters: ["4/4"], families: ["chip"], moods: ["joy", "playful", "drive", "tension"], master: "dense", reverb: "none", arrangement: "2 pulses, triangle bass, noise drums; fast arpeggios fake chords", guards: ["<= 4 voices", "no reverb", "PolyBLEP pulses"] },lofi: { id: "lofi", tempo: [70, 90], meters: ["4/4"], families: ["ePiano", "drums", "bass"], moods: ["nostalgic", "calm", "wistful"], master: "dense", reverb: "room", swing: [0.55, 0.62], arrangement: "4 or 8 bar loop with small variations", guards: ["no 2 consecutive identical 8-bar blocks", "master low-pass <= 9 kHz allowed"] },+ lofiElectronic: { id: "lofiElectronic", tempo: [80, 100], meters: ["4/4"], families: ["pad", "pluck", "bass", "drums"], moods: ["calm", "joy", "hopeful", "nostalgic"], master: "dense", reverb: "room", swing: [0.52, 0.56], arrangement: "4-bar chord loop; sections add and remove layers (intro, groove, hook, half-time, breakdown, drop, outro); a chosen bar lands on the home chord", guards: ["no ePiano, no vinyl, no bit-crush: clean", "balance by stem RMS vs targets, not LUFS alone"] },folk: { id: "folk", tempo: [80, 120], meters: ["6/8", "3/4", "4/4"], families: ["guitar", "harp", "fmBell"], moods: ["calm", "wistful", "joy", "nostalgic"], master: "gentle", reverb: "room", arrangement: "fingerpicked pattern + lead", guards: ["strum spread 10-30 ms low to high"] },minimalist: { id: "minimalist", tempo: [100, 140], meters: ["4/4", "12/8"], families: ["mallets", "piano"], moods: ["curious", "tension", "awe"], master: "gentle", reverb: "room", arrangement: "interlocking ostinatos; one change every 8-16 bars", guards: ["a change at least every 16 bars"] },jazz: { id: "jazz", tempo: [90, 180], meters: ["4/4"], families: ["piano", "bass", "drums"], moods: ["playful", "nostalgic", "romantic", "curious"], master: "gentle", reverb: "room", swing: [0.6, 0.67], arrangement: "walking bass on quarters, comping off the beat", guards: ["7th chords required"] },