Skip to content

Art and animation, written as code. Illustrations, loops, interactive web art, launch-videos and scored films in dozens of styles, identical on every render.

music: softer steel pick; README instrument table for the v2 ensemble voices (options, cinematic-not-realistic, Piece.legacy)

Alex Greenshpun985e2a268bed
diff --git a/skills/anidoodle/engine/src/canvas-core/music/ensemble.ts b/skills/anidoodle/engine/src/canvas-core/music/ensemble.ts
index 0d1d1f3..6c7057a 100644
--- a/skills/anidoodle/engine/src/canvas-core/music/ensemble.ts
+++ b/skills/anidoodle/engine/src/canvas-core/music/ensemble.ts
@@ -295,7 +295,7 @@ export const choir = (keys: Played[], sr: number, n: number, o: Opts, r0: Rng):
type PluckSpec = { width: number; beta: number; noise: number; lpMul: number; /** absolute excitation low-pass (Hz) instead of lpMul x f */ lpAbs?: number; /** contact width grows as (f / 131 Hz)^widthExp (thicker treble strings, softer finger) */ widthExp?: number; loss: number; t60: (f: number) => number; relT60: number; ring: boolean; pol2: number; ir?: IRSpec; pick: number; level: number };
const PLUCK: Record<string, PluckSpec> = {
nylon: { width: 0.0022, beta: 0.2, noise: 0.25, lpMul: 3.5, loss: 0.3, t60: (f) => clamp(3.4 * Math.pow(196 / f, 0.55), 0.7, 7), relT60: 0.18, ring: false, pol2: 0.6, ir: IR_NYLON, pick: 0, level: LEVEL.guitar },
- steel: { width: 0.0007, beta: 0.13, noise: 0.4, lpMul: 9, loss: 0.16, t60: (f) => clamp(4.5 * Math.pow(196 / f, 0.5), 1, 9), relT60: 0.15, ring: false, pol2: 0.7, ir: IR_STEEL, pick: 0.05, level: LEVEL.guitar },
+ steel: { width: 0.0009, beta: 0.13, noise: 0.4, lpMul: 8, loss: 0.16, t60: (f) => clamp(4.5 * Math.pow(196 / f, 0.5), 1, 9), relT60: 0.15, ring: false, pol2: 0.7, ir: IR_STEEL, pick: 0.03, level: LEVEL.guitar },
electric: { width: 0.0008, beta: 0.12, noise: 0.35, lpMul: 7, loss: 0.14, t60: (f) => clamp(6 * Math.pow(196 / f, 0.45), 1.5, 12), relT60: 0.12, ring: false, pol2: 0.4, pick: 0.035, level: LEVEL.guitar },
// harp: brightness, pluck point and ring fitted by ear-free A/B to VCSL Concert Harp C3/C5 (CC0; tools/ensemble-check.mjs ref)
harp: { width: 0.0018, widthExp: 0.35, beta: 0.1, noise: 0.2, lpMul: 3, lpAbs: 900, loss: 0.14, t60: (f) => clamp(9.5 * Math.pow(262 / f, 0.45), 1.5, 16), relT60: 1, ring: true, pol2: 0.5, ir: IR_HARP, pick: 0, level: LEVEL.harp },
diff --git a/skills/anidoodle/references/music/README.md b/skills/anidoodle/references/music/README.md
index 7ff0b0a..ef824ae 100644
--- a/skills/anidoodle/references/music/README.md
+++ b/skills/anidoodle/references/music/README.md
@@ -67,21 +67,24 @@ MusicPlan + notes (you write) -> perform -> instruments (one stem per part)
| `piano` | Modal, physics-shaped: inharmonic partials, 2-3 detuned strings with two-stage decay, velocity-dependent hammer brightness and strike comb, knock, soundboard modes, dampers, sustain pedal with sympathetic strings, stereo by pitch. See ADVISORY 4.1. |
| `musicBox`, `bell` | The recipe's numbers |
| `celesta`, `marimba`, `vibes` | Modal bars |
- | `harp`, `guitar` | Extended Karplus-Strong |
- | `strings` | Detuned PolyBLEP saws, slow bow, delayed vibrato |
+ | `harp`, `guitar` | Extended Karplus-Strong: pick position, two polarisations, a commuted body (harp fitted to CC0 recordings). `kind`: nylon (default), steel, electric (`pickup`: neck or bridge, `drive` into a clean amp) |
+ | `strings` | A section of `players` (default 10, divided across chords), each with its own timing, tuning, drift, vibrato and bow noise, through measured violin, viola and cello bodies. `pizz: true` plucks |
| `fmBell`, `ePiano` | 2-operator FM |
| `pulse`, `triangle`, `noiseDrum` | NES-style chip voices |
- | `kick`, `snare`, `hat`, `bass`, `vinyl` | Drums, bass and texture |
+ | `kick`, `snare`, `hat`, `vinyl` | Drums and texture |
+ | `bass` | `kind`: finger (default, electric through an amp, `drive`), pick, upright (body, pitch settle, thump), synth (saw + sub into a 24 dB filter, glide) |
| `warmPad`, `softPluck`, `sub` | The lo-fi electronic kit (`lofiKit.ts`): detuned-saw pad, filtered pluck with ping-pong delay, sine sub |
| `organ` | Drawbar ranks (harmonics 1 2 3 4 6 8), chorus, tremulant |
- | `brass` | PolyBLEP saw, a low-pass that opens with loudness, a pitch scoop, delayed vibrato |
- | `woodwind` | Flute (sine + breath noise) or `reed: true` clarinet (odd harmonics) |
- | `choir` | Detuned saws through vowel formants (`vowel`: a o u e i). Texture, never a lead |
+ | `brass` | Section of `players` (default 3): harmonics that brighten with loudness, a lip scoop, breath, bell formants (`type`: trumpet, trombone or horn; `bright` < 0.75 = horn) |
+ | `woodwind` | Flute (chiff, jet and breath noise, breath vibrato) or `reed: true` clarinet (odd harmonics, reed noise). Touching notes slur |
+ | `choir` | Singers (`singers`, default 8) with a glottal source, jitter, shimmer and breath, through 5 formants per vowel. `vowel`: a e i o u, or a sequence (`"uoa"`) that morphs across each note |
| `timpani` | Tuned membrane modes, a pitch settle, a mallet thump (`pitch` tunes it in a drum lane) |
| `leadSynth` | Mono saw + square, portamento, a filter envelope, blooming vibrato |
- | `bowedSolo` | One bowed voice (violin, or `cello: true`): vibrato, bow noise, body resonances |
+ | `bowedSolo` | A bowed waveguide string (violin, or `cello: true`): touching notes are one bow with a finger slide, delayed vibrato, measured body |
- The acoustic voices are procedural approximations. A human listens before one carries a film.
+ The acoustic voices are procedural approximations: cinematic and stylized, never "realistic". Every note varies
+ (seeded), so repeats never clone. A human listens before one carries a film. A shipped score sets
+ `legacy: true` on its piece to keep the sound it shipped with.
4. **Room.** The style chooses it:
- music box: one reflection, no tail;
- nocturne and lullaby: a small room;