From 235a397de0bfcff375d040e9a99881a9c5587d38 Mon Sep 17 00:00:00 2001 From: Aqua Date: Fri, 6 Nov 2026 12:40:06 +0000 Subject: [PATCH 01/86] aqua-feel: effects shelf (SHELF.md, generated shelf.json, render+check) 55 entries (thruster, 9 Ding events, 4 earcon identities, 41 playground patches): params with the DSP's own ranges, what each reacts to (event, control or start; none reacts to audio), the render command, duration, and a listening field that stays 'unheard'. shelf.mjs check runs every render command and reads the WAVs back: finite, not silent, as long as listed, and shelf.json/SHELF.md current. No dependencies added. Nothing was heard. Co-Authored-By: Claude Sonnet 5.5 --- tools/aqua-feel/README.md | 4 + tools/aqua-feel/SHELF.md | 125 ++ tools/aqua-feel/package.json | 2 +- tools/aqua-feel/shelf.json | 2824 ++++++++++++++++++++++++++++++++++ tools/aqua-feel/shelf.mjs | 180 +++ 5 files changed, 3134 insertions(+), 1 deletion(-) create mode 100644 tools/aqua-feel/SHELF.md create mode 100644 tools/aqua-feel/shelf.json create mode 100644 tools/aqua-feel/shelf.mjs diff --git a/tools/aqua-feel/README.md b/tools/aqua-feel/README.md index 87aa094..e20a649 100644 --- a/tools/aqua-feel/README.md +++ b/tools/aqua-feel/README.md @@ -61,6 +61,10 @@ at the shipped renders. They are tripwires, not taste. Current waivers: `sfxr-classic-classic-sfxr-abstract-golf` (+0.9 dBTP, -5.3 LUFS, held noise) and `sfxr-explosion` (3 s of steady noise without decay). Nobody has listened to either to see if the number is the sound. +## Effects shelf + +`SHELF.md` and `shelf.json` list every renderable effect (thruster, Dings, earcon families, playground patches) with params, trigger, render command and duration; `node shelf.mjs check` runs every render command and checks the WAVs are finite and not silent. Nothing on it is heard (`listening: unheard`). + ## Reuse `report.js` imports `mean`, `spearman` and `permutationP` from `../aqua-trial/analyze.mjs` and the variants from diff --git a/tools/aqua-feel/SHELF.md b/tools/aqua-feel/SHELF.md new file mode 100644 index 0000000..3f423bc --- /dev/null +++ b/tools/aqua-feel/SHELF.md @@ -0,0 +1,125 @@ +# Effects shelf + +What AquaSynth can render to a WAV today without a window, an audio device or a server: the thruster, the Dings event sounds, the +earcon workshop's families and the playground's synth patches. `shelf.json` is the machine-readable list (generated); the tables +below are generated from it. Both come from `node tools/aqua-feel/shelf.mjs build`. + +**Nothing on this shelf has been heard.** Every `listening` field is `unheard`. `node tools/aqua-feel/shelf.mjs check` runs each +entry's render command and proves the file is finite, not silent (peak above -70 dBFS) and as long as listed. It cannot say +that anything sounds good, fits an overlay, or is distinguishable on a stream. A person edits `listening` after listening. + +## For overlay packaging + +- **No entry reacts to audio.** Nothing here analyses a signal. Entries react to *events* (Ding event ids, earcon event ids), to a + *control value* (the thruster's `rpm`), or to being *started* (patches). Mapping a StreamPixels event onto any of these is not + done anywhere in the repo; that mapping is the packager's. +- Two event vocabularies exist and do not match: Dings use task-state ids (`task.complete`, `input.required`, ...), the earcon + workshop uses `success, fail, warning, message, done, waiting`. The earcon workshop is a separate JS implementation and + does not sound like the Dings. +- Every command runs from the repo root, needs node >= 20, and writes under `tools/aqua-feel/out/shelf/` (gitignored). Patch and + Ding renders need the faustwasm runtime once: `(cd tools/aqua-playground && npm ci)`. Earcon renders need nothing installed. +- Patch and Ding WAVs are mono float32 at 48 kHz; earcon WAVs are mono 16-bit at 48 kHz. +- `duration_s` for patches is the 3 s render window, not the effect's length: `behaviour` says whether the patch was still sounding + at 3 s (sustained) or had died away. Re-render with `--seconds N` for longer. +- Ding loudness uses command gain 0.6, an assumption carried over from `tools/aqua-feel`. + +## Render one + +```sh +node tools/aqua-feel/shelf.mjs render patch/thruster rpm=2400 --out /tmp/thruster.wav --seconds 5 +node tools/aqua-feel/shelf.mjs render ding/task.complete instrument=glass-chime --out /tmp/done.wav +node tools/earcon-workshop/cli.mjs warm-bell /tmp/earcons tempo=1.2 level=0.6 # six WAVs + pack.json +node tools/aqua-feel/shelf.mjs check # every entry (about two minutes); --only SUBSTR for a subset +``` + +Each entry in `shelf.json` carries its own `render.command` (the exact string `check` runs) and the files it writes. +Sustained patches such as the thruster keep sounding until stopped; the render command cuts them at the window. + +## Entries + + + +### Thruster (1) + +| id | reacts to | params | behaviour | duration | listening | +|---|---|---|---|---|---| +| `patch/thruster` | control: rpm | rpm 300..6000 (default 1200) | sustained | 3 s | unheard | + +### Dings (event sounds) (9) + +| id | reacts to | params | behaviour | duration | listening | +|---|---|---|---|---|---| +| `ding/input.required` | event `input.required` | instrument ∈ {glass-chime, muted-pluck, soft-triangle, warm-bell} (default warm-bell) | decays | 1.76 s | unheard | +| `ding/resource.limit` | event `resource.limit` | instrument ∈ {glass-chime, muted-pluck, soft-triangle, warm-bell} (default warm-bell) | decays | 2.06 s | unheard | +| `ding/session.end` | event `session.end` | instrument ∈ {glass-chime, muted-pluck, soft-triangle, warm-bell} (default warm-bell) | decays | 1.74 s | unheard | +| `ding/session.start` | event `session.start` | instrument ∈ {glass-chime, muted-pluck, soft-triangle, warm-bell} (default warm-bell) | decays | 1.72 s | unheard | +| `ding/task.acknowledge` | event `task.acknowledge` | instrument ∈ {glass-chime, muted-pluck, soft-triangle, warm-bell} (default warm-bell) | decays | 1.5 s | unheard | +| `ding/task.complete` | event `task.complete` | instrument ∈ {glass-chime, muted-pluck, soft-triangle, warm-bell} (default warm-bell) | decays | 1.72 s | unheard | +| `ding/task.error` | event `task.error` | instrument ∈ {glass-chime, muted-pluck, soft-triangle, warm-bell} (default warm-bell) | decays | 1.98 s | unheard | +| `ding/task.progress` | event `task.progress` | instrument ∈ {glass-chime, muted-pluck, soft-triangle, warm-bell} (default warm-bell) | decays | 1.5 s | unheard | +| `ding/user.spam` | event `user.spam` | instrument ∈ {glass-chime, muted-pluck, soft-triangle, warm-bell} (default warm-bell) | decays | 1.88 s | unheard | + +### Earcon workshop (one WAV per event) (4) + +| id | reacts to | params | behaviour | duration | listening | +|---|---|---|---|---|---| +| `earcon/warm-bell` | events: success, fail, warning, message, done, waiting | tempo 0.6..1.6 (default 1); transpose -12..12 (default 0); brightness -0.25..0.25 (default 0); decay 0.5..1.6 (default 1); level 0.1..0.9 (default 0.7) | decays | 1.45 s | unheard | +| `earcon/glass-chime` | events: success, fail, warning, message, done, waiting | tempo 0.6..1.6 (default 1); transpose -12..12 (default 0); brightness -0.25..0.25 (default 0); decay 0.5..1.6 (default 1); level 0.1..0.9 (default 0.7) | decays | 1.35 s | unheard | +| `earcon/soft-triangle` | events: success, fail, warning, message, done, waiting | tempo 0.6..1.6 (default 1); transpose -12..12 (default 0); brightness -0.25..0.25 (default 0); decay 0.5..1.6 (default 1); level 0.1..0.9 (default 0.7) | decays | 1.4 s | unheard | +| `earcon/muted-pluck` | events: success, fail, warning, message, done, waiting | tempo 0.6..1.6 (default 1); transpose -12..12 (default 0); brightness -0.25..0.25 (default 0); decay 0.5..1.6 (default 1); level 0.1..0.9 (default 0.7) | decays | 1.15 s | unheard | + +### Playground patches (one-shot and sustained synth sounds) (41) + +| id | reacts to | params | behaviour | duration | listening | +|---|---|---|---|---|---| +| `patch/808-clap` | start | none | decays | 3 s | unheard | +| `patch/808-cowbell` | start | none | decays | 3 s | unheard | +| `patch/808-hat` | start | none | decays | 3 s | unheard | +| `patch/808-kick` | start | none | decays | 3 s | unheard | +| `patch/808-snare` | start | none | decays | 3 s | unheard | +| `patch/808-tom` | start | none | decays | 3 s | unheard | +| `patch/advanced-alien-multivalve-graph` | start | alien/aperture 0..2 (default 0.85); alien/core/opening 0..1 (default 0.24); alien/core/pressure 0..1.5 (default 0.74); alien/side/opening 0..1 (default 0.3); alien/side/pressure 0..1.5 (default 0.52); curves/core_breath/depth 0..1 (default 0.9); curves/mouth_shape/depth 0..1 (default 0.8); curves/side_breath/depth 0..1 (default 0.9) | decays | 3 s | unheard | +| `patch/advanced-aurora-pad` | start | none | decays | 3 s | unheard | +| `patch/advanced-bird-syrinx` | start | bird/beak/opening 0..1.5 (default 0.95); bird/left/damping 0..2 (default 0.14); bird/left/flow_scale 0..4 (default 1.2); bird/left/load_coupling 0..2 (default 0.42); bird/left/mass 0.02..2 (default 0.32); bird/left/opening 0..1 (default 0.24); bird/left/pressure 0..1 (default 0.82); bird/left/rest_opening 0..1 (default 0.025); bird/left/stiffness 0..1 (default 0.025); bird/left/tension 0..1 (default 0.38); bird/left/tissue_loss 0..1 (default 0.18); bird/right/damping 0..2 (default 0.16); bird/right/flow_scale 0..4 (default 1.1); bird/right/load_coupling 0..2 (default 0.42); bird/right/mass 0.02..2 (default 0.34); bird/right/opening 0..1 (default 0.21); bird/right/pressure 0..1 (default 0.7); bird/right/rest_opening 0..1 (default 0.025); bird/right/stiffness 0..1 (default 0.03); bird/right/tension 0..1 (default 0.45); bird/right/tissue_loss 0..1 (default 0.2); curves/beak_opening/depth 0..1 (default 0.7); curves/left_opening/depth 0..1 (default 0.85); curves/left_pressure/depth 0..1 (default 1); curves/right_opening/depth 0..1 (default 0.85); curves/right_pressure/depth 0..1 (default 1) | decays | 3 s | unheard | +| `patch/advanced-bird-syrinx-graph` | start | bird/beak/opening 0..1.5 (default 0.92); bird/left/opening 0..1 (default 0.2); bird/left/pressure 0..1.5 (default 0.84); bird/left/tension 0..1 (default 0.46); bird/right/opening 0..1 (default 0.18); bird/right/pressure 0..1.5 (default 0.72); bird/right/tension 0..1 (default 0.52); curves/beak_gate/depth 0..1 (default 0.75); curves/left_air/depth 0..1 (default 0.95); curves/left_labium_gate/depth 0..1 (default 0.9); curves/right_air/depth 0..1 (default 0.95); curves/right_labium_gate/depth 0..1 (default 0.9) | decays | 3 s | unheard | +| `patch/advanced-glass-creature` | start | none | decays | 3 s | unheard | +| `patch/advanced-human-larynx-graph` | start | curves/breath_phrase/depth 0..1 (default 0.9); curves/fold_onset/depth 0..1 (default 0.8); curves/lip_vowel/depth 0..1 (default 0.65); human/constriction/diameter 0.02..3 (default 0.95); human/constriction/index 0..6 (default 4.8); human/fold/opening 0..1 (default 0.16); human/fold/tension 0..1 (default 0.58); human/lip/opening 0..2 (default 1.2); human/subglottal 0..1.5 (default 0.78); human/tongue/diameter 0.05..3 (default 1.25); human/tongue/index 0..6 (default 3.3) | decays | 3 s | unheard | +| `patch/advanced-machine-breath` | start | none | decays | 3 s | unheard | +| `patch/advanced-ritual-sequence` | start | none | sustained | 3 s | unheard | +| `patch/advanced-subtractive-drums` | start | none | decays | 3 s | unheard | +| `patch/advanced-syrinx-voice` | start | curves/beak_phrase/depth 0..1 (default 0.72); curves/left_phrase_opening/depth 0..1 (default 0.85); curves/left_phrase_pressure/depth 0..1 (default 0.92); curves/right_phrase_opening/depth 0..1 (default 0.85); curves/right_phrase_pressure/depth 0..1 (default 0.92); voice/beak/opening 0..1.5 (default 0.88); voice/left/opening 0..1 (default 0.23); voice/left/pressure 0..1.5 (default 0.78); voice/left/tension 0..1 (default 0.43); voice/right/opening 0..1 (default 0.19); voice/right/pressure 0..1.5 (default 0.66); voice/right/tension 0..1 (default 0.5) | decays | 3 s | unheard | +| `patch/bfxr-coin-spark` | start | none | decays | 3 s | unheard | +| `patch/bfxr-portal-chirp` | start | none | decays | 3 s | unheard | +| `patch/bfxr-shield-pop` | start | none | decays | 3 s | unheard | +| `patch/bfxr-ui-bloom` | start | none | sustained | 3 s | unheard | +| `patch/dx7-algorithm-32-additive-organ` | start | macro/drawbar 0..1 (default 0.78); macro/shimmer 0..0.3 (default 0.08) | decays | 3 s | unheard | +| `patch/dx7-algorithm-8-bright-pair` | start | macro/brightness 0..5 (default 2.6); macro/strike 0.02..0.6 (default 0.18) | decays | 3 s | unheard | +| `patch/dx7-public-domain-mc-mm-5-3` | start | none | decays | 3 s | unheard | +| `patch/dx7-public-domain-prc-synth1-calibrated` | start | none | decays | 3 s | unheard | +| `patch/examples-language-tour` | start | none | sustained | 3 s | unheard | +| `patch/fm-bell-bell` | start | none | decays | 3 s | unheard | +| `patch/fm-bell-chime` | start | none | decays | 3 s | unheard | +| `patch/fm-bell-coin` | start | none | decays | 3 s | unheard | +| `patch/fm-bell-gong` | start | none | decays | 3 s | unheard | +| `patch/sfxr-blip` | start | none | decays | 3 s | unheard | +| `patch/sfxr-classic-classic-sfxr-abstract-golf` | start | none | sustained | 3 s | unheard | +| `patch/sfxr-explosion` | start | none | sustained | 3 s | unheard | +| `patch/sfxr-hit` | start | none | decays | 3 s | unheard | +| `patch/sfxr-jump` | start | none | decays | 3 s | unheard | +| `patch/sfxr-laser` | start | none | decays | 3 s | unheard | +| `patch/sfxr-pickup` | start | none | decays | 3 s | unheard | +| `patch/sfxr-powerup` | start | none | sustained | 3 s | unheard | +| `patch/wobble-bass-growl` | start | none | decays | 3 s | unheard | +| `patch/wobble-bass-neuro` | start | none | decays | 3 s | unheard | +| `patch/wobble-bass-talker` | start | none | decays | 3 s | unheard | +| `patch/wobble-bass-yoy` | start | none | decays | 3 s | unheard | + + + +## Not on the shelf + +- `tools/aqua-trial`'s `thruster-trial.dsp` (the thruster plus a `noise` percent control): a listening-trial fixture, not an effect. +- `advanced/additive-pad` and `advanced/electro-drop-demo`: they lower to about 1.5 MB of Faust each and are not in the playground. +- The Dings daemon's native libfaust path (`-vec`): the shelf renders through faustwasm, the same host as `tools/aqua-feel`; the two + have not been diffed. +- Nothing is mapped to StreamPixels events, and no overlay-side player exists in this repo. diff --git a/tools/aqua-feel/package.json b/tools/aqua-feel/package.json index 9015ff1..6707152 100644 --- a/tools/aqua-feel/package.json +++ b/tools/aqua-feel/package.json @@ -3,5 +3,5 @@ "private": true, "type": "module", "description": "Headless feel meter for AquaSynth: renders every shipped patch and Ding offline and measures them. Measures; does not listen.", - "scripts": { "test": "node test.mjs", "feel": "node feel.mjs" } + "scripts": { "test": "node test.mjs", "feel": "node feel.mjs", "shelf": "node shelf.mjs build", "shelf:check": "node shelf.mjs check" } } diff --git a/tools/aqua-feel/shelf.json b/tools/aqua-feel/shelf.json new file mode 100644 index 0000000..fbbac7e --- /dev/null +++ b/tools/aqua-feel/shelf.json @@ -0,0 +1,2824 @@ +{ + "schema": "aquasynth.effects-shelf.v0", + "note": "Generated by tools/aqua-feel/shelf.mjs build. Nothing here was heard: every entry's listening status is 'unheard'. Commands run from the repo root.", + "sampleRate": 48000, + "entries": [ + { + "id": "patch/thruster", + "group": "thruster", + "name": "thruster", + "family": "thruster", + "source": "tools/aqua-playground/lowered/thruster.dsp", + "params": [ + { + "name": "rpm", + "kind": "slider", + "min": 300, + "max": 6000, + "default": 1200, + "step": 1 + } + ], + "reacts_to": { + "kind": "control", + "detail": "the rpm slider (300..6000, smoothed over 0.2 s): drive it from whatever number should make the thruster work harder. Nothing in the repo maps a stream metric to rpm." + }, + "behaviour": "sustained: still sounding at the end of the render window, runs until stopped", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/thruster --out tools/aqua-feel/out/shelf/patch_thruster.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_thruster.wav", + "duration_s": 3 + } + ] + }, + "check_variants": [ + { + "params": { + "rpm": 300 + }, + "command": "node tools/aqua-feel/shelf.mjs render patch/thruster rpm=300 --out tools/aqua-feel/out/shelf/patch_thruster_rpm300.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_thruster_rpm300.wav", + "duration_s": 3 + } + ] + }, + { + "params": { + "rpm": 6000 + }, + "command": "node tools/aqua-feel/shelf.mjs render patch/thruster rpm=6000 --out tools/aqua-feel/out/shelf/patch_thruster_rpm6000.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_thruster_rpm6000.wav", + "duration_s": 3 + } + ] + } + ], + "listening": "unheard" + }, + { + "id": "patch/808-clap", + "group": "patch", + "name": "808-clap", + "family": "808", + "source": "tools/aqua-playground/lowered/808-clap.dsp (lowered from patches/808/clap.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/808-clap --out tools/aqua-feel/out/shelf/patch_808-clap.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_808-clap.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/808-cowbell", + "group": "patch", + "name": "808-cowbell", + "family": "808", + "source": "tools/aqua-playground/lowered/808-cowbell.dsp (lowered from patches/808/cowbell.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/808-cowbell --out tools/aqua-feel/out/shelf/patch_808-cowbell.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_808-cowbell.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/808-hat", + "group": "patch", + "name": "808-hat", + "family": "808", + "source": "tools/aqua-playground/lowered/808-hat.dsp (lowered from patches/808/hat.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/808-hat --out tools/aqua-feel/out/shelf/patch_808-hat.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_808-hat.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/808-kick", + "group": "patch", + "name": "808-kick", + "family": "808", + "source": "tools/aqua-playground/lowered/808-kick.dsp (lowered from patches/808/kick.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/808-kick --out tools/aqua-feel/out/shelf/patch_808-kick.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_808-kick.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/808-snare", + "group": "patch", + "name": "808-snare", + "family": "808", + "source": "tools/aqua-playground/lowered/808-snare.dsp (lowered from patches/808/snare.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/808-snare --out tools/aqua-feel/out/shelf/patch_808-snare.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_808-snare.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/808-tom", + "group": "patch", + "name": "808-tom", + "family": "808", + "source": "tools/aqua-playground/lowered/808-tom.dsp (lowered from patches/808/tom.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/808-tom --out tools/aqua-feel/out/shelf/patch_808-tom.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_808-tom.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/advanced-alien-multivalve-graph", + "group": "patch", + "name": "advanced-alien-multivalve-graph", + "family": "advanced", + "source": "tools/aqua-playground/lowered/advanced-alien-multivalve-graph.dsp (lowered from patches/advanced/alien-multivalve-graph.aqua)", + "params": [ + { + "name": "alien/aperture", + "kind": "slider", + "min": 0, + "max": 2, + "default": 0.85, + "step": 0.001 + }, + { + "name": "alien/core/opening", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.24, + "step": 0.001 + }, + { + "name": "alien/core/pressure", + "kind": "slider", + "min": 0, + "max": 1.5, + "default": 0.74, + "step": 0.001 + }, + { + "name": "alien/side/opening", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.3, + "step": 0.001 + }, + { + "name": "alien/side/pressure", + "kind": "slider", + "min": 0, + "max": 1.5, + "default": 0.52, + "step": 0.001 + }, + { + "name": "curves/core_breath/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.9, + "step": 0.001 + }, + { + "name": "curves/mouth_shape/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.8, + "step": 0.001 + }, + { + "name": "curves/side_breath/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.9, + "step": 0.001 + } + ], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/advanced-alien-multivalve-graph --out tools/aqua-feel/out/shelf/patch_advanced-alien-multivalve-graph.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_advanced-alien-multivalve-graph.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/advanced-aurora-pad", + "group": "patch", + "name": "advanced-aurora-pad", + "family": "advanced", + "source": "tools/aqua-playground/lowered/advanced-aurora-pad.dsp (lowered from patches/advanced/aurora-pad.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/advanced-aurora-pad --out tools/aqua-feel/out/shelf/patch_advanced-aurora-pad.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_advanced-aurora-pad.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/advanced-bird-syrinx", + "group": "patch", + "name": "advanced-bird-syrinx", + "family": "advanced", + "source": "tools/aqua-playground/lowered/advanced-bird-syrinx.dsp (lowered from patches/advanced/bird-syrinx.aqua)", + "params": [ + { + "name": "bird/beak/opening", + "kind": "slider", + "min": 0, + "max": 1.5, + "default": 0.95, + "step": 0.001 + }, + { + "name": "bird/left/damping", + "kind": "slider", + "min": 0, + "max": 2, + "default": 0.14, + "step": 0.001 + }, + { + "name": "bird/left/flow_scale", + "kind": "slider", + "min": 0, + "max": 4, + "default": 1.2, + "step": 0.001 + }, + { + "name": "bird/left/load_coupling", + "kind": "slider", + "min": 0, + "max": 2, + "default": 0.42, + "step": 0.001 + }, + { + "name": "bird/left/mass", + "kind": "slider", + "min": 0.02, + "max": 2, + "default": 0.32, + "step": 0.001 + }, + { + "name": "bird/left/opening", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.24, + "step": 0.001 + }, + { + "name": "bird/left/pressure", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.82, + "step": 0.001 + }, + { + "name": "bird/left/rest_opening", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.025, + "step": 0.001 + }, + { + "name": "bird/left/stiffness", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.025, + "step": 0.001 + }, + { + "name": "bird/left/tension", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.38, + "step": 0.001 + }, + { + "name": "bird/left/tissue_loss", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.18, + "step": 0.001 + }, + { + "name": "bird/right/damping", + "kind": "slider", + "min": 0, + "max": 2, + "default": 0.16, + "step": 0.001 + }, + { + "name": "bird/right/flow_scale", + "kind": "slider", + "min": 0, + "max": 4, + "default": 1.1, + "step": 0.001 + }, + { + "name": "bird/right/load_coupling", + "kind": "slider", + "min": 0, + "max": 2, + "default": 0.42, + "step": 0.001 + }, + { + "name": "bird/right/mass", + "kind": "slider", + "min": 0.02, + "max": 2, + "default": 0.34, + "step": 0.001 + }, + { + "name": "bird/right/opening", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.21, + "step": 0.001 + }, + { + "name": "bird/right/pressure", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.7, + "step": 0.001 + }, + { + "name": "bird/right/rest_opening", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.025, + "step": 0.001 + }, + { + "name": "bird/right/stiffness", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.03, + "step": 0.001 + }, + { + "name": "bird/right/tension", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.45, + "step": 0.001 + }, + { + "name": "bird/right/tissue_loss", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.2, + "step": 0.001 + }, + { + "name": "curves/beak_opening/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.7, + "step": 0.001 + }, + { + "name": "curves/left_opening/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.85, + "step": 0.001 + }, + { + "name": "curves/left_pressure/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 1, + "step": 0.001 + }, + { + "name": "curves/right_opening/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.85, + "step": 0.001 + }, + { + "name": "curves/right_pressure/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 1, + "step": 0.001 + } + ], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/advanced-bird-syrinx --out tools/aqua-feel/out/shelf/patch_advanced-bird-syrinx.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_advanced-bird-syrinx.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/advanced-bird-syrinx-graph", + "group": "patch", + "name": "advanced-bird-syrinx-graph", + "family": "advanced", + "source": "tools/aqua-playground/lowered/advanced-bird-syrinx-graph.dsp (lowered from patches/advanced/bird-syrinx-graph.aqua)", + "params": [ + { + "name": "bird/beak/opening", + "kind": "slider", + "min": 0, + "max": 1.5, + "default": 0.92, + "step": 0.001 + }, + { + "name": "bird/left/opening", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.2, + "step": 0.001 + }, + { + "name": "bird/left/pressure", + "kind": "slider", + "min": 0, + "max": 1.5, + "default": 0.84, + "step": 0.001 + }, + { + "name": "bird/left/tension", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.46, + "step": 0.001 + }, + { + "name": "bird/right/opening", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.18, + "step": 0.001 + }, + { + "name": "bird/right/pressure", + "kind": "slider", + "min": 0, + "max": 1.5, + "default": 0.72, + "step": 0.001 + }, + { + "name": "bird/right/tension", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.52, + "step": 0.001 + }, + { + "name": "curves/beak_gate/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.75, + "step": 0.001 + }, + { + "name": "curves/left_air/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.95, + "step": 0.001 + }, + { + "name": "curves/left_labium_gate/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.9, + "step": 0.001 + }, + { + "name": "curves/right_air/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.95, + "step": 0.001 + }, + { + "name": "curves/right_labium_gate/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.9, + "step": 0.001 + } + ], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/advanced-bird-syrinx-graph --out tools/aqua-feel/out/shelf/patch_advanced-bird-syrinx-graph.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_advanced-bird-syrinx-graph.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/advanced-glass-creature", + "group": "patch", + "name": "advanced-glass-creature", + "family": "advanced", + "source": "tools/aqua-playground/lowered/advanced-glass-creature.dsp (lowered from patches/advanced/glass-creature.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/advanced-glass-creature --out tools/aqua-feel/out/shelf/patch_advanced-glass-creature.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_advanced-glass-creature.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/advanced-human-larynx-graph", + "group": "patch", + "name": "advanced-human-larynx-graph", + "family": "advanced", + "source": "tools/aqua-playground/lowered/advanced-human-larynx-graph.dsp (lowered from patches/advanced/human-larynx-graph.aqua)", + "params": [ + { + "name": "curves/breath_phrase/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.9, + "step": 0.001 + }, + { + "name": "curves/fold_onset/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.8, + "step": 0.001 + }, + { + "name": "curves/lip_vowel/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.65, + "step": 0.001 + }, + { + "name": "human/constriction/diameter", + "kind": "slider", + "min": 0.02, + "max": 3, + "default": 0.95, + "step": 0.001 + }, + { + "name": "human/constriction/index", + "kind": "slider", + "min": 0, + "max": 6, + "default": 4.8, + "step": 0.001 + }, + { + "name": "human/fold/opening", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.16, + "step": 0.001 + }, + { + "name": "human/fold/tension", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.58, + "step": 0.001 + }, + { + "name": "human/lip/opening", + "kind": "slider", + "min": 0, + "max": 2, + "default": 1.2, + "step": 0.001 + }, + { + "name": "human/subglottal", + "kind": "slider", + "min": 0, + "max": 1.5, + "default": 0.78, + "step": 0.001 + }, + { + "name": "human/tongue/diameter", + "kind": "slider", + "min": 0.05, + "max": 3, + "default": 1.25, + "step": 0.001 + }, + { + "name": "human/tongue/index", + "kind": "slider", + "min": 0, + "max": 6, + "default": 3.3, + "step": 0.001 + } + ], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/advanced-human-larynx-graph --out tools/aqua-feel/out/shelf/patch_advanced-human-larynx-graph.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_advanced-human-larynx-graph.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/advanced-machine-breath", + "group": "patch", + "name": "advanced-machine-breath", + "family": "advanced", + "source": "tools/aqua-playground/lowered/advanced-machine-breath.dsp (lowered from patches/advanced/machine-breath.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/advanced-machine-breath --out tools/aqua-feel/out/shelf/patch_advanced-machine-breath.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_advanced-machine-breath.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/advanced-ritual-sequence", + "group": "patch", + "name": "advanced-ritual-sequence", + "family": "advanced", + "source": "tools/aqua-playground/lowered/advanced-ritual-sequence.dsp (lowered from patches/advanced/ritual-sequence.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "sustained: still sounding at the end of the render window, runs until stopped", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/advanced-ritual-sequence --out tools/aqua-feel/out/shelf/patch_advanced-ritual-sequence.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_advanced-ritual-sequence.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/advanced-subtractive-drums", + "group": "patch", + "name": "advanced-subtractive-drums", + "family": "advanced", + "source": "tools/aqua-playground/lowered/advanced-subtractive-drums.dsp (lowered from patches/advanced/subtractive-drums.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/advanced-subtractive-drums --out tools/aqua-feel/out/shelf/patch_advanced-subtractive-drums.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_advanced-subtractive-drums.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/advanced-syrinx-voice", + "group": "patch", + "name": "advanced-syrinx-voice", + "family": "advanced", + "source": "tools/aqua-playground/lowered/advanced-syrinx-voice.dsp (lowered from patches/advanced/syrinx-voice.aqua)", + "params": [ + { + "name": "curves/beak_phrase/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.72, + "step": 0.001 + }, + { + "name": "curves/left_phrase_opening/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.85, + "step": 0.001 + }, + { + "name": "curves/left_phrase_pressure/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.92, + "step": 0.001 + }, + { + "name": "curves/right_phrase_opening/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.85, + "step": 0.001 + }, + { + "name": "curves/right_phrase_pressure/depth", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.92, + "step": 0.001 + }, + { + "name": "voice/beak/opening", + "kind": "slider", + "min": 0, + "max": 1.5, + "default": 0.88, + "step": 0.001 + }, + { + "name": "voice/left/opening", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.23, + "step": 0.001 + }, + { + "name": "voice/left/pressure", + "kind": "slider", + "min": 0, + "max": 1.5, + "default": 0.78, + "step": 0.001 + }, + { + "name": "voice/left/tension", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.43, + "step": 0.001 + }, + { + "name": "voice/right/opening", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.19, + "step": 0.001 + }, + { + "name": "voice/right/pressure", + "kind": "slider", + "min": 0, + "max": 1.5, + "default": 0.66, + "step": 0.001 + }, + { + "name": "voice/right/tension", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.5, + "step": 0.001 + } + ], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/advanced-syrinx-voice --out tools/aqua-feel/out/shelf/patch_advanced-syrinx-voice.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_advanced-syrinx-voice.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/bfxr-coin-spark", + "group": "patch", + "name": "bfxr-coin-spark", + "family": "bfxr", + "source": "tools/aqua-playground/lowered/bfxr-coin-spark.dsp (lowered from patches/bfxr/coin-spark.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/bfxr-coin-spark --out tools/aqua-feel/out/shelf/patch_bfxr-coin-spark.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_bfxr-coin-spark.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/bfxr-portal-chirp", + "group": "patch", + "name": "bfxr-portal-chirp", + "family": "bfxr", + "source": "tools/aqua-playground/lowered/bfxr-portal-chirp.dsp (lowered from patches/bfxr/portal-chirp.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/bfxr-portal-chirp --out tools/aqua-feel/out/shelf/patch_bfxr-portal-chirp.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_bfxr-portal-chirp.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/bfxr-shield-pop", + "group": "patch", + "name": "bfxr-shield-pop", + "family": "bfxr", + "source": "tools/aqua-playground/lowered/bfxr-shield-pop.dsp (lowered from patches/bfxr/shield-pop.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/bfxr-shield-pop --out tools/aqua-feel/out/shelf/patch_bfxr-shield-pop.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_bfxr-shield-pop.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/bfxr-ui-bloom", + "group": "patch", + "name": "bfxr-ui-bloom", + "family": "bfxr", + "source": "tools/aqua-playground/lowered/bfxr-ui-bloom.dsp (lowered from patches/bfxr/ui-bloom.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "sustained: still sounding at the end of the render window, runs until stopped", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/bfxr-ui-bloom --out tools/aqua-feel/out/shelf/patch_bfxr-ui-bloom.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_bfxr-ui-bloom.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/dx7-algorithm-32-additive-organ", + "group": "patch", + "name": "dx7-algorithm-32-additive-organ", + "family": "dx7", + "source": "tools/aqua-playground/lowered/dx7-algorithm-32-additive-organ.dsp (lowered from patches/dx7/algorithm-32-additive-organ.aqua)", + "params": [ + { + "name": "macro/drawbar", + "kind": "slider", + "min": 0, + "max": 1, + "default": 0.78, + "step": 0.001 + }, + { + "name": "macro/shimmer", + "kind": "slider", + "min": 0, + "max": 0.3, + "default": 0.08, + "step": 0.001 + } + ], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/dx7-algorithm-32-additive-organ --out tools/aqua-feel/out/shelf/patch_dx7-algorithm-32-additive-organ.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_dx7-algorithm-32-additive-organ.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/dx7-algorithm-8-bright-pair", + "group": "patch", + "name": "dx7-algorithm-8-bright-pair", + "family": "dx7", + "source": "tools/aqua-playground/lowered/dx7-algorithm-8-bright-pair.dsp (lowered from patches/dx7/algorithm-8-bright-pair.aqua)", + "params": [ + { + "name": "macro/brightness", + "kind": "slider", + "min": 0, + "max": 5, + "default": 2.6, + "step": 0.001 + }, + { + "name": "macro/strike", + "kind": "slider", + "min": 0.02, + "max": 0.6, + "default": 0.18, + "step": 0.001 + } + ], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/dx7-algorithm-8-bright-pair --out tools/aqua-feel/out/shelf/patch_dx7-algorithm-8-bright-pair.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_dx7-algorithm-8-bright-pair.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/dx7-public-domain-mc-mm-5-3", + "group": "patch", + "name": "dx7-public-domain-mc-mm-5-3", + "family": "dx7", + "source": "tools/aqua-playground/lowered/dx7-public-domain-mc-mm-5-3.dsp (lowered from patches/dx7/public-domain-mc-mm-5-3.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/dx7-public-domain-mc-mm-5-3 --out tools/aqua-feel/out/shelf/patch_dx7-public-domain-mc-mm-5-3.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_dx7-public-domain-mc-mm-5-3.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/dx7-public-domain-prc-synth1-calibrated", + "group": "patch", + "name": "dx7-public-domain-prc-synth1-calibrated", + "family": "dx7", + "source": "tools/aqua-playground/lowered/dx7-public-domain-prc-synth1-calibrated.dsp (lowered from patches/dx7/public-domain/prc-synth1-calibrated.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/dx7-public-domain-prc-synth1-calibrated --out tools/aqua-feel/out/shelf/patch_dx7-public-domain-prc-synth1-calibrated.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_dx7-public-domain-prc-synth1-calibrated.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/examples-language-tour", + "group": "patch", + "name": "examples-language-tour", + "family": "examples", + "source": "tools/aqua-playground/lowered/examples-language-tour.dsp (lowered from patches/examples/language-tour.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "sustained: still sounding at the end of the render window, runs until stopped", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/examples-language-tour --out tools/aqua-feel/out/shelf/patch_examples-language-tour.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_examples-language-tour.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/fm-bell-bell", + "group": "patch", + "name": "fm-bell-bell", + "family": "fm", + "source": "tools/aqua-playground/lowered/fm-bell-bell.dsp (lowered from patches/fm-bell/bell.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/fm-bell-bell --out tools/aqua-feel/out/shelf/patch_fm-bell-bell.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_fm-bell-bell.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/fm-bell-chime", + "group": "patch", + "name": "fm-bell-chime", + "family": "fm", + "source": "tools/aqua-playground/lowered/fm-bell-chime.dsp (lowered from patches/fm-bell/chime.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/fm-bell-chime --out tools/aqua-feel/out/shelf/patch_fm-bell-chime.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_fm-bell-chime.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/fm-bell-coin", + "group": "patch", + "name": "fm-bell-coin", + "family": "fm", + "source": "tools/aqua-playground/lowered/fm-bell-coin.dsp (lowered from patches/fm-bell/coin.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/fm-bell-coin --out tools/aqua-feel/out/shelf/patch_fm-bell-coin.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_fm-bell-coin.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/fm-bell-gong", + "group": "patch", + "name": "fm-bell-gong", + "family": "fm", + "source": "tools/aqua-playground/lowered/fm-bell-gong.dsp (lowered from patches/fm-bell/gong.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/fm-bell-gong --out tools/aqua-feel/out/shelf/patch_fm-bell-gong.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_fm-bell-gong.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/sfxr-blip", + "group": "patch", + "name": "sfxr-blip", + "family": "sfxr", + "source": "tools/aqua-playground/lowered/sfxr-blip.dsp (lowered from patches/sfxr/blip.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/sfxr-blip --out tools/aqua-feel/out/shelf/patch_sfxr-blip.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_sfxr-blip.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/sfxr-classic-classic-sfxr-abstract-golf", + "group": "patch", + "name": "sfxr-classic-classic-sfxr-abstract-golf", + "family": "sfxr", + "source": "tools/aqua-playground/lowered/sfxr-classic-classic-sfxr-abstract-golf.dsp (lowered from patches/sfxr/classic/classic-sfxr-abstract-golf.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "sustained: still sounding at the end of the render window, runs until stopped", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/sfxr-classic-classic-sfxr-abstract-golf --out tools/aqua-feel/out/shelf/patch_sfxr-classic-classic-sfxr-abstract-golf.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_sfxr-classic-classic-sfxr-abstract-golf.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/sfxr-explosion", + "group": "patch", + "name": "sfxr-explosion", + "family": "sfxr", + "source": "tools/aqua-playground/lowered/sfxr-explosion.dsp (lowered from patches/sfxr/explosion.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "sustained: still sounding at the end of the render window, runs until stopped", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/sfxr-explosion --out tools/aqua-feel/out/shelf/patch_sfxr-explosion.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_sfxr-explosion.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/sfxr-hit", + "group": "patch", + "name": "sfxr-hit", + "family": "sfxr", + "source": "tools/aqua-playground/lowered/sfxr-hit.dsp (lowered from patches/sfxr/hit.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/sfxr-hit --out tools/aqua-feel/out/shelf/patch_sfxr-hit.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_sfxr-hit.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/sfxr-jump", + "group": "patch", + "name": "sfxr-jump", + "family": "sfxr", + "source": "tools/aqua-playground/lowered/sfxr-jump.dsp (lowered from patches/sfxr/jump.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/sfxr-jump --out tools/aqua-feel/out/shelf/patch_sfxr-jump.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_sfxr-jump.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/sfxr-laser", + "group": "patch", + "name": "sfxr-laser", + "family": "sfxr", + "source": "tools/aqua-playground/lowered/sfxr-laser.dsp (lowered from patches/sfxr/laser.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/sfxr-laser --out tools/aqua-feel/out/shelf/patch_sfxr-laser.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_sfxr-laser.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/sfxr-pickup", + "group": "patch", + "name": "sfxr-pickup", + "family": "sfxr", + "source": "tools/aqua-playground/lowered/sfxr-pickup.dsp (lowered from patches/sfxr/pickup.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/sfxr-pickup --out tools/aqua-feel/out/shelf/patch_sfxr-pickup.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_sfxr-pickup.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/sfxr-powerup", + "group": "patch", + "name": "sfxr-powerup", + "family": "sfxr", + "source": "tools/aqua-playground/lowered/sfxr-powerup.dsp (lowered from patches/sfxr/powerup.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "sustained: still sounding at the end of the render window, runs until stopped", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/sfxr-powerup --out tools/aqua-feel/out/shelf/patch_sfxr-powerup.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_sfxr-powerup.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/wobble-bass-growl", + "group": "patch", + "name": "wobble-bass-growl", + "family": "wobble", + "source": "tools/aqua-playground/lowered/wobble-bass-growl.dsp (lowered from patches/wobble-bass/growl.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/wobble-bass-growl --out tools/aqua-feel/out/shelf/patch_wobble-bass-growl.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_wobble-bass-growl.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/wobble-bass-neuro", + "group": "patch", + "name": "wobble-bass-neuro", + "family": "wobble", + "source": "tools/aqua-playground/lowered/wobble-bass-neuro.dsp (lowered from patches/wobble-bass/neuro.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/wobble-bass-neuro --out tools/aqua-feel/out/shelf/patch_wobble-bass-neuro.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_wobble-bass-neuro.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/wobble-bass-talker", + "group": "patch", + "name": "wobble-bass-talker", + "family": "wobble", + "source": "tools/aqua-playground/lowered/wobble-bass-talker.dsp (lowered from patches/wobble-bass/talker.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/wobble-bass-talker --out tools/aqua-feel/out/shelf/patch_wobble-bass-talker.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_wobble-bass-talker.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "patch/wobble-bass-yoy", + "group": "patch", + "name": "wobble-bass-yoy", + "family": "wobble", + "source": "tools/aqua-playground/lowered/wobble-bass-yoy.dsp (lowered from patches/wobble-bass/yoy.aqua)", + "params": [], + "reacts_to": { + "kind": "start", + "detail": "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." + }, + "behaviour": "decays: dies away inside the render window", + "duration_s": 3, + "duration_note": "the render window, not the effect's length", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render patch/wobble-bass-yoy --out tools/aqua-feel/out/shelf/patch_wobble-bass-yoy.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/patch_wobble-bass-yoy.wav", + "duration_s": 3 + } + ] + }, + "listening": "unheard" + }, + { + "id": "ding/input.required", + "group": "ding", + "name": "input.required", + "family": "dings", + "source": "tools/aqua-feel/lowered-dings (lowered from src DingCatalog)", + "params": [ + { + "name": "instrument", + "kind": "enum", + "values": [ + "glass-chime", + "muted-pluck", + "soft-triangle", + "warm-bell" + ], + "default": "warm-bell", + "note": "no instrument is the shipped default in the catalog; warm-bell is the shelf's choice" + } + ], + "reacts_to": { + "kind": "event", + "event_id": "input.required", + "detail": "Ding event \"input.required\": Input requested. A Ding event is 2 note(s) at semitones 12, 5 above 261.6256 Hz. Mapping stream events onto Ding events is not done anywhere." + }, + "behaviour": "decays", + "duration_s": 1.76, + "duration_note": "1.5 s per note plus the last note's delay; command gain 0.6 is an assumption (aqua-feel README)", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render ding/input.required instrument=warm-bell --out tools/aqua-feel/out/shelf/ding_input.required_warm-bell.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_input.required_warm-bell.wav", + "duration_s": 1.76 + } + ] + }, + "check_variants": [ + { + "params": { + "instrument": "glass-chime" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/input.required instrument=glass-chime --out tools/aqua-feel/out/shelf/ding_input.required_glass-chime.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_input.required_glass-chime.wav", + "duration_s": 1.76 + } + ] + }, + { + "params": { + "instrument": "muted-pluck" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/input.required instrument=muted-pluck --out tools/aqua-feel/out/shelf/ding_input.required_muted-pluck.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_input.required_muted-pluck.wav", + "duration_s": 1.76 + } + ] + }, + { + "params": { + "instrument": "soft-triangle" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/input.required instrument=soft-triangle --out tools/aqua-feel/out/shelf/ding_input.required_soft-triangle.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_input.required_soft-triangle.wav", + "duration_s": 1.76 + } + ] + } + ], + "listening": "unheard" + }, + { + "id": "ding/resource.limit", + "group": "ding", + "name": "resource.limit", + "family": "dings", + "source": "tools/aqua-feel/lowered-dings (lowered from src DingCatalog)", + "params": [ + { + "name": "instrument", + "kind": "enum", + "values": [ + "glass-chime", + "muted-pluck", + "soft-triangle", + "warm-bell" + ], + "default": "warm-bell", + "note": "no instrument is the shipped default in the catalog; warm-bell is the shelf's choice" + } + ], + "reacts_to": { + "kind": "event", + "event_id": "resource.limit", + "detail": "Ding event \"resource.limit\": Resource is holding. A Ding event is 3 note(s) at semitones 0, 0, 0 above 261.6256 Hz. Mapping stream events onto Ding events is not done anywhere." + }, + "behaviour": "decays", + "duration_s": 2.06, + "duration_note": "1.5 s per note plus the last note's delay; command gain 0.6 is an assumption (aqua-feel README)", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render ding/resource.limit instrument=warm-bell --out tools/aqua-feel/out/shelf/ding_resource.limit_warm-bell.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_resource.limit_warm-bell.wav", + "duration_s": 2.06 + } + ] + }, + "check_variants": [ + { + "params": { + "instrument": "glass-chime" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/resource.limit instrument=glass-chime --out tools/aqua-feel/out/shelf/ding_resource.limit_glass-chime.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_resource.limit_glass-chime.wav", + "duration_s": 2.06 + } + ] + }, + { + "params": { + "instrument": "muted-pluck" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/resource.limit instrument=muted-pluck --out tools/aqua-feel/out/shelf/ding_resource.limit_muted-pluck.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_resource.limit_muted-pluck.wav", + "duration_s": 2.06 + } + ] + }, + { + "params": { + "instrument": "soft-triangle" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/resource.limit instrument=soft-triangle --out tools/aqua-feel/out/shelf/ding_resource.limit_soft-triangle.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_resource.limit_soft-triangle.wav", + "duration_s": 2.06 + } + ] + } + ], + "listening": "unheard" + }, + { + "id": "ding/session.end", + "group": "ding", + "name": "session.end", + "family": "dings", + "source": "tools/aqua-feel/lowered-dings (lowered from src DingCatalog)", + "params": [ + { + "name": "instrument", + "kind": "enum", + "values": [ + "glass-chime", + "muted-pluck", + "soft-triangle", + "warm-bell" + ], + "default": "warm-bell", + "note": "no instrument is the shipped default in the catalog; warm-bell is the shelf's choice" + } + ], + "reacts_to": { + "kind": "event", + "event_id": "session.end", + "detail": "Ding event \"session.end\": Session closure. A Ding event is 2 note(s) at semitones 7, 0 above 261.6256 Hz. Mapping stream events onto Ding events is not done anywhere." + }, + "behaviour": "decays", + "duration_s": 1.74, + "duration_note": "1.5 s per note plus the last note's delay; command gain 0.6 is an assumption (aqua-feel README)", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render ding/session.end instrument=warm-bell --out tools/aqua-feel/out/shelf/ding_session.end_warm-bell.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_session.end_warm-bell.wav", + "duration_s": 1.74 + } + ] + }, + "check_variants": [ + { + "params": { + "instrument": "glass-chime" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/session.end instrument=glass-chime --out tools/aqua-feel/out/shelf/ding_session.end_glass-chime.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_session.end_glass-chime.wav", + "duration_s": 1.74 + } + ] + }, + { + "params": { + "instrument": "muted-pluck" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/session.end instrument=muted-pluck --out tools/aqua-feel/out/shelf/ding_session.end_muted-pluck.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_session.end_muted-pluck.wav", + "duration_s": 1.74 + } + ] + }, + { + "params": { + "instrument": "soft-triangle" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/session.end instrument=soft-triangle --out tools/aqua-feel/out/shelf/ding_session.end_soft-triangle.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_session.end_soft-triangle.wav", + "duration_s": 1.74 + } + ] + } + ], + "listening": "unheard" + }, + { + "id": "ding/session.start", + "group": "ding", + "name": "session.start", + "family": "dings", + "source": "tools/aqua-feel/lowered-dings (lowered from src DingCatalog)", + "params": [ + { + "name": "instrument", + "kind": "enum", + "values": [ + "glass-chime", + "muted-pluck", + "soft-triangle", + "warm-bell" + ], + "default": "warm-bell", + "note": "no instrument is the shipped default in the catalog; warm-bell is the shelf's choice" + } + ], + "reacts_to": { + "kind": "event", + "event_id": "session.start", + "detail": "Ding event \"session.start\": Opening welcome. A Ding event is 2 note(s) at semitones 0, 7 above 261.6256 Hz. Mapping stream events onto Ding events is not done anywhere." + }, + "behaviour": "decays", + "duration_s": 1.72, + "duration_note": "1.5 s per note plus the last note's delay; command gain 0.6 is an assumption (aqua-feel README)", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render ding/session.start instrument=warm-bell --out tools/aqua-feel/out/shelf/ding_session.start_warm-bell.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_session.start_warm-bell.wav", + "duration_s": 1.72 + } + ] + }, + "check_variants": [ + { + "params": { + "instrument": "glass-chime" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/session.start instrument=glass-chime --out tools/aqua-feel/out/shelf/ding_session.start_glass-chime.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_session.start_glass-chime.wav", + "duration_s": 1.72 + } + ] + }, + { + "params": { + "instrument": "muted-pluck" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/session.start instrument=muted-pluck --out tools/aqua-feel/out/shelf/ding_session.start_muted-pluck.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_session.start_muted-pluck.wav", + "duration_s": 1.72 + } + ] + }, + { + "params": { + "instrument": "soft-triangle" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/session.start instrument=soft-triangle --out tools/aqua-feel/out/shelf/ding_session.start_soft-triangle.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_session.start_soft-triangle.wav", + "duration_s": 1.72 + } + ] + } + ], + "listening": "unheard" + }, + { + "id": "ding/task.acknowledge", + "group": "ding", + "name": "task.acknowledge", + "family": "dings", + "source": "tools/aqua-feel/lowered-dings (lowered from src DingCatalog)", + "params": [ + { + "name": "instrument", + "kind": "enum", + "values": [ + "glass-chime", + "muted-pluck", + "soft-triangle", + "warm-bell" + ], + "default": "warm-bell", + "note": "no instrument is the shipped default in the catalog; warm-bell is the shelf's choice" + } + ], + "reacts_to": { + "kind": "event", + "event_id": "task.acknowledge", + "detail": "Ding event \"task.acknowledge\": Quiet ongoing acknowledgement. A Ding event is 1 note(s) at semitones 7 above 261.6256 Hz. Mapping stream events onto Ding events is not done anywhere." + }, + "behaviour": "decays", + "duration_s": 1.5, + "duration_note": "1.5 s per note plus the last note's delay; command gain 0.6 is an assumption (aqua-feel README)", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render ding/task.acknowledge instrument=warm-bell --out tools/aqua-feel/out/shelf/ding_task.acknowledge_warm-bell.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.acknowledge_warm-bell.wav", + "duration_s": 1.5 + } + ] + }, + "check_variants": [ + { + "params": { + "instrument": "glass-chime" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/task.acknowledge instrument=glass-chime --out tools/aqua-feel/out/shelf/ding_task.acknowledge_glass-chime.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.acknowledge_glass-chime.wav", + "duration_s": 1.5 + } + ] + }, + { + "params": { + "instrument": "muted-pluck" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/task.acknowledge instrument=muted-pluck --out tools/aqua-feel/out/shelf/ding_task.acknowledge_muted-pluck.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.acknowledge_muted-pluck.wav", + "duration_s": 1.5 + } + ] + }, + { + "params": { + "instrument": "soft-triangle" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/task.acknowledge instrument=soft-triangle --out tools/aqua-feel/out/shelf/ding_task.acknowledge_soft-triangle.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.acknowledge_soft-triangle.wav", + "duration_s": 1.5 + } + ] + } + ], + "listening": "unheard" + }, + { + "id": "ding/task.complete", + "group": "ding", + "name": "task.complete", + "family": "dings", + "source": "tools/aqua-feel/lowered-dings (lowered from src DingCatalog)", + "params": [ + { + "name": "instrument", + "kind": "enum", + "values": [ + "glass-chime", + "muted-pluck", + "soft-triangle", + "warm-bell" + ], + "default": "warm-bell", + "note": "no instrument is the shipped default in the catalog; warm-bell is the shelf's choice" + } + ], + "reacts_to": { + "kind": "event", + "event_id": "task.complete", + "detail": "Ding event \"task.complete\": Satisfying closure. A Ding event is 2 note(s) at semitones 7, 12 above 261.6256 Hz. Mapping stream events onto Ding events is not done anywhere." + }, + "behaviour": "decays", + "duration_s": 1.72, + "duration_note": "1.5 s per note plus the last note's delay; command gain 0.6 is an assumption (aqua-feel README)", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render ding/task.complete instrument=warm-bell --out tools/aqua-feel/out/shelf/ding_task.complete_warm-bell.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.complete_warm-bell.wav", + "duration_s": 1.72 + } + ] + }, + "check_variants": [ + { + "params": { + "instrument": "glass-chime" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/task.complete instrument=glass-chime --out tools/aqua-feel/out/shelf/ding_task.complete_glass-chime.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.complete_glass-chime.wav", + "duration_s": 1.72 + } + ] + }, + { + "params": { + "instrument": "muted-pluck" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/task.complete instrument=muted-pluck --out tools/aqua-feel/out/shelf/ding_task.complete_muted-pluck.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.complete_muted-pluck.wav", + "duration_s": 1.72 + } + ] + }, + { + "params": { + "instrument": "soft-triangle" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/task.complete instrument=soft-triangle --out tools/aqua-feel/out/shelf/ding_task.complete_soft-triangle.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.complete_soft-triangle.wav", + "duration_s": 1.72 + } + ] + } + ], + "listening": "unheard" + }, + { + "id": "ding/task.error", + "group": "ding", + "name": "task.error", + "family": "dings", + "source": "tools/aqua-feel/lowered-dings (lowered from src DingCatalog)", + "params": [ + { + "name": "instrument", + "kind": "enum", + "values": [ + "glass-chime", + "muted-pluck", + "soft-triangle", + "warm-bell" + ], + "default": "warm-bell", + "note": "no instrument is the shipped default in the catalog; warm-bell is the shelf's choice" + } + ], + "reacts_to": { + "kind": "event", + "event_id": "task.error", + "detail": "Ding event \"task.error\": Gentle failure notice. A Ding event is 3 note(s) at semitones 7, 4, 0 above 261.6256 Hz. Mapping stream events onto Ding events is not done anywhere." + }, + "behaviour": "decays", + "duration_s": 1.98, + "duration_note": "1.5 s per note plus the last note's delay; command gain 0.6 is an assumption (aqua-feel README)", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render ding/task.error instrument=warm-bell --out tools/aqua-feel/out/shelf/ding_task.error_warm-bell.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.error_warm-bell.wav", + "duration_s": 1.98 + } + ] + }, + "check_variants": [ + { + "params": { + "instrument": "glass-chime" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/task.error instrument=glass-chime --out tools/aqua-feel/out/shelf/ding_task.error_glass-chime.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.error_glass-chime.wav", + "duration_s": 1.98 + } + ] + }, + { + "params": { + "instrument": "muted-pluck" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/task.error instrument=muted-pluck --out tools/aqua-feel/out/shelf/ding_task.error_muted-pluck.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.error_muted-pluck.wav", + "duration_s": 1.98 + } + ] + }, + { + "params": { + "instrument": "soft-triangle" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/task.error instrument=soft-triangle --out tools/aqua-feel/out/shelf/ding_task.error_soft-triangle.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.error_soft-triangle.wav", + "duration_s": 1.98 + } + ] + } + ], + "listening": "unheard" + }, + { + "id": "ding/task.progress", + "group": "ding", + "name": "task.progress", + "family": "dings", + "source": "tools/aqua-feel/lowered-dings (lowered from src DingCatalog)", + "params": [ + { + "name": "instrument", + "kind": "enum", + "values": [ + "glass-chime", + "muted-pluck", + "soft-triangle", + "warm-bell" + ], + "default": "warm-bell", + "note": "no instrument is the shipped default in the catalog; warm-bell is the shelf's choice" + } + ], + "reacts_to": { + "kind": "event", + "event_id": "task.progress", + "detail": "Ding event \"task.progress\": Faint ignorable progress. A Ding event is 1 note(s) at semitones -5 above 261.6256 Hz. Mapping stream events onto Ding events is not done anywhere." + }, + "behaviour": "decays", + "duration_s": 1.5, + "duration_note": "1.5 s per note plus the last note's delay; command gain 0.6 is an assumption (aqua-feel README)", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render ding/task.progress instrument=warm-bell --out tools/aqua-feel/out/shelf/ding_task.progress_warm-bell.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.progress_warm-bell.wav", + "duration_s": 1.5 + } + ] + }, + "check_variants": [ + { + "params": { + "instrument": "glass-chime" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/task.progress instrument=glass-chime --out tools/aqua-feel/out/shelf/ding_task.progress_glass-chime.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.progress_glass-chime.wav", + "duration_s": 1.5 + } + ] + }, + { + "params": { + "instrument": "muted-pluck" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/task.progress instrument=muted-pluck --out tools/aqua-feel/out/shelf/ding_task.progress_muted-pluck.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.progress_muted-pluck.wav", + "duration_s": 1.5 + } + ] + }, + { + "params": { + "instrument": "soft-triangle" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/task.progress instrument=soft-triangle --out tools/aqua-feel/out/shelf/ding_task.progress_soft-triangle.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_task.progress_soft-triangle.wav", + "duration_s": 1.5 + } + ] + } + ], + "listening": "unheard" + }, + { + "id": "ding/user.spam", + "group": "ding", + "name": "user.spam", + "family": "dings", + "source": "tools/aqua-feel/lowered-dings (lowered from src DingCatalog)", + "params": [ + { + "name": "instrument", + "kind": "enum", + "values": [ + "glass-chime", + "muted-pluck", + "soft-triangle", + "warm-bell" + ], + "default": "warm-bell", + "note": "no instrument is the shipped default in the catalog; warm-bell is the shelf's choice" + } + ], + "reacts_to": { + "kind": "event", + "event_id": "user.spam", + "detail": "Ding event \"user.spam\": Curt rate warning. A Ding event is 3 note(s) at semitones 9, 9, 9 above 261.6256 Hz. Mapping stream events onto Ding events is not done anywhere." + }, + "behaviour": "decays", + "duration_s": 1.88, + "duration_note": "1.5 s per note plus the last note's delay; command gain 0.6 is an assumption (aqua-feel README)", + "render": { + "command": "node tools/aqua-feel/shelf.mjs render ding/user.spam instrument=warm-bell --out tools/aqua-feel/out/shelf/ding_user.spam_warm-bell.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_user.spam_warm-bell.wav", + "duration_s": 1.88 + } + ] + }, + "check_variants": [ + { + "params": { + "instrument": "glass-chime" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/user.spam instrument=glass-chime --out tools/aqua-feel/out/shelf/ding_user.spam_glass-chime.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_user.spam_glass-chime.wav", + "duration_s": 1.88 + } + ] + }, + { + "params": { + "instrument": "muted-pluck" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/user.spam instrument=muted-pluck --out tools/aqua-feel/out/shelf/ding_user.spam_muted-pluck.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_user.spam_muted-pluck.wav", + "duration_s": 1.88 + } + ] + }, + { + "params": { + "instrument": "soft-triangle" + }, + "command": "node tools/aqua-feel/shelf.mjs render ding/user.spam instrument=soft-triangle --out tools/aqua-feel/out/shelf/ding_user.spam_soft-triangle.wav", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/ding_user.spam_soft-triangle.wav", + "duration_s": 1.88 + } + ] + } + ], + "listening": "unheard" + }, + { + "id": "earcon/warm-bell", + "group": "earcon", + "name": "warm-bell", + "family": "earcon-workshop", + "source": "tools/earcon-workshop/web/earcon.js (plain JS reimplementation; not the Dings .aqua scripts, so it does not sound like the Dings)", + "params": [ + { + "name": "tempo", + "kind": "slider", + "min": 0.6, + "max": 1.6, + "step": 0.01, + "default": 1 + }, + { + "name": "transpose", + "kind": "slider", + "min": -12, + "max": 12, + "step": 1, + "default": 0 + }, + { + "name": "brightness", + "kind": "slider", + "min": -0.25, + "max": 0.25, + "step": 0.01, + "default": 0 + }, + { + "name": "decay", + "kind": "slider", + "min": 0.5, + "max": 1.6, + "step": 0.01, + "default": 1 + }, + { + "name": "level", + "kind": "slider", + "min": 0.1, + "max": 0.9, + "step": 0.01, + "default": 0.7 + } + ], + "reacts_to": { + "kind": "event", + "events": [ + { + "event_id": "success", + "detail": "It worked: rising fifth then octave" + }, + { + "event_id": "fail", + "detail": "It broke: falling minor figure, low landing" + }, + { + "event_id": "warning", + "detail": "Look at this: tritone zigzag, three quick notes" + }, + { + "event_id": "message", + "detail": "Someone spoke: quick two-note lift high in the register" + }, + { + "event_id": "done", + "detail": "Finished: falling resolve onto the root, long tail" + }, + { + "event_id": "waiting", + "detail": "Needs you: quiet, sparse, slow low sway, three soft notes" + } + ], + "detail": "one WAV per event; the caller picks the file for the event it has. Voice: soft fundamental, restrained upper partial" + }, + "behaviour": "decays", + "duration_s": 1.45, + "duration_note": "longest of the six event WAVs at default sliders", + "render": { + "command": "node tools/earcon-workshop/cli.mjs warm-bell tools/aqua-feel/out/shelf/earcon/warm-bell", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/earcon/warm-bell/warm-bell-success.wav", + "duration_s": 0.77 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/warm-bell/warm-bell-fail.wav", + "duration_s": 0.87 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/warm-bell/warm-bell-warning.wav", + "duration_s": 0.77 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/warm-bell/warm-bell-message.wav", + "duration_s": 0.455 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/warm-bell/warm-bell-done.wav", + "duration_s": 1.17 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/warm-bell/warm-bell-waiting.wav", + "duration_s": 1.45 + } + ] + }, + "listening": "unheard" + }, + { + "id": "earcon/glass-chime", + "group": "earcon", + "name": "glass-chime", + "family": "earcon-workshop", + "source": "tools/earcon-workshop/web/earcon.js (plain JS reimplementation; not the Dings .aqua scripts, so it does not sound like the Dings)", + "params": [ + { + "name": "tempo", + "kind": "slider", + "min": 0.6, + "max": 1.6, + "step": 0.01, + "default": 1 + }, + { + "name": "transpose", + "kind": "slider", + "min": -12, + "max": 12, + "step": 1, + "default": 0 + }, + { + "name": "brightness", + "kind": "slider", + "min": -0.25, + "max": 0.25, + "step": 0.01, + "default": 0 + }, + { + "name": "decay", + "kind": "slider", + "min": 0.5, + "max": 1.6, + "step": 0.01, + "default": 1 + }, + { + "name": "level", + "kind": "slider", + "min": 0.1, + "max": 0.9, + "step": 0.01, + "default": 0.7 + } + ], + "reacts_to": { + "kind": "event", + "events": [ + { + "event_id": "success", + "detail": "It worked: rising fifth then octave" + }, + { + "event_id": "fail", + "detail": "It broke: falling minor figure, low landing" + }, + { + "event_id": "warning", + "detail": "Look at this: tritone zigzag, three quick notes" + }, + { + "event_id": "message", + "detail": "Someone spoke: quick two-note lift high in the register" + }, + { + "event_id": "done", + "detail": "Finished: falling resolve onto the root, long tail" + }, + { + "event_id": "waiting", + "detail": "Needs you: quiet, sparse, slow low sway, three soft notes" + } + ], + "detail": "one WAV per event; the caller picks the file for the event it has. Voice: clear and precise" + }, + "behaviour": "decays", + "duration_s": 1.35, + "duration_note": "longest of the six event WAVs at default sliders", + "render": { + "command": "node tools/earcon-workshop/cli.mjs glass-chime tools/aqua-feel/out/shelf/earcon/glass-chime", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/earcon/glass-chime/glass-chime-success.wav", + "duration_s": 0.67 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/glass-chime/glass-chime-fail.wav", + "duration_s": 0.77 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/glass-chime/glass-chime-warning.wav", + "duration_s": 0.67 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/glass-chime/glass-chime-message.wav", + "duration_s": 0.385 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/glass-chime/glass-chime-done.wav", + "duration_s": 1.03 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/glass-chime/glass-chime-waiting.wav", + "duration_s": 1.35 + } + ] + }, + "listening": "unheard" + }, + { + "id": "earcon/soft-triangle", + "group": "earcon", + "name": "soft-triangle", + "family": "earcon-workshop", + "source": "tools/earcon-workshop/web/earcon.js (plain JS reimplementation; not the Dings .aqua scripts, so it does not sound like the Dings)", + "params": [ + { + "name": "tempo", + "kind": "slider", + "min": 0.6, + "max": 1.6, + "step": 0.01, + "default": 1 + }, + { + "name": "transpose", + "kind": "slider", + "min": -12, + "max": 12, + "step": 1, + "default": 0 + }, + { + "name": "brightness", + "kind": "slider", + "min": -0.25, + "max": 0.25, + "step": 0.01, + "default": 0 + }, + { + "name": "decay", + "kind": "slider", + "min": 0.5, + "max": 1.6, + "step": 0.01, + "default": 1 + }, + { + "name": "level", + "kind": "slider", + "min": 0.1, + "max": 0.9, + "step": 0.01, + "default": 0.7 + } + ], + "reacts_to": { + "kind": "event", + "events": [ + { + "event_id": "success", + "detail": "It worked: rising fifth then octave" + }, + { + "event_id": "fail", + "detail": "It broke: falling minor figure, low landing" + }, + { + "event_id": "warning", + "detail": "Look at this: tritone zigzag, three quick notes" + }, + { + "event_id": "message", + "detail": "Someone spoke: quick two-note lift high in the register" + }, + { + "event_id": "done", + "detail": "Finished: falling resolve onto the root, long tail" + }, + { + "event_id": "waiting", + "detail": "Needs you: quiet, sparse, slow low sway, three soft notes" + } + ], + "detail": "one WAV per event; the caller picks the file for the event it has. Voice: rounded, calm" + }, + "behaviour": "decays", + "duration_s": 1.4, + "duration_note": "longest of the six event WAVs at default sliders", + "render": { + "command": "node tools/earcon-workshop/cli.mjs soft-triangle tools/aqua-feel/out/shelf/earcon/soft-triangle", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/earcon/soft-triangle/soft-triangle-success.wav", + "duration_s": 0.72 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/soft-triangle/soft-triangle-fail.wav", + "duration_s": 0.82 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/soft-triangle/soft-triangle-warning.wav", + "duration_s": 0.72 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/soft-triangle/soft-triangle-message.wav", + "duration_s": 0.42 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/soft-triangle/soft-triangle-done.wav", + "duration_s": 1.1 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/soft-triangle/soft-triangle-waiting.wav", + "duration_s": 1.4 + } + ] + }, + "listening": "unheard" + }, + { + "id": "earcon/muted-pluck", + "group": "earcon", + "name": "muted-pluck", + "family": "earcon-workshop", + "source": "tools/earcon-workshop/web/earcon.js (plain JS reimplementation; not the Dings .aqua scripts, so it does not sound like the Dings)", + "params": [ + { + "name": "tempo", + "kind": "slider", + "min": 0.6, + "max": 1.6, + "step": 0.01, + "default": 1 + }, + { + "name": "transpose", + "kind": "slider", + "min": -12, + "max": 12, + "step": 1, + "default": 0 + }, + { + "name": "brightness", + "kind": "slider", + "min": -0.25, + "max": 0.25, + "step": 0.01, + "default": 0 + }, + { + "name": "decay", + "kind": "slider", + "min": 0.5, + "max": 1.6, + "step": 0.01, + "default": 1 + }, + { + "name": "level", + "kind": "slider", + "min": 0.1, + "max": 0.9, + "step": 0.01, + "default": 0.7 + } + ], + "reacts_to": { + "kind": "event", + "events": [ + { + "event_id": "success", + "detail": "It worked: rising fifth then octave" + }, + { + "event_id": "fail", + "detail": "It broke: falling minor figure, low landing" + }, + { + "event_id": "warning", + "detail": "Look at this: tritone zigzag, three quick notes" + }, + { + "event_id": "message", + "detail": "Someone spoke: quick two-note lift high in the register" + }, + { + "event_id": "done", + "detail": "Finished: falling resolve onto the root, long tail" + }, + { + "event_id": "waiting", + "detail": "Needs you: quiet, sparse, slow low sway, three soft notes" + } + ], + "detail": "one WAV per event; the caller picks the file for the event it has. Voice: short, dry" + }, + "behaviour": "decays", + "duration_s": 1.15, + "duration_note": "longest of the six event WAVs at default sliders", + "render": { + "command": "node tools/earcon-workshop/cli.mjs muted-pluck tools/aqua-feel/out/shelf/earcon/muted-pluck", + "outputs": [ + { + "file": "tools/aqua-feel/out/shelf/earcon/muted-pluck/muted-pluck-success.wav", + "duration_s": 0.47 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/muted-pluck/muted-pluck-fail.wav", + "duration_s": 0.57 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/muted-pluck/muted-pluck-warning.wav", + "duration_s": 0.47 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/muted-pluck/muted-pluck-message.wav", + "duration_s": 0.245 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/muted-pluck/muted-pluck-done.wav", + "duration_s": 0.75 + }, + { + "file": "tools/aqua-feel/out/shelf/earcon/muted-pluck/muted-pluck-waiting.wav", + "duration_s": 1.15 + } + ] + }, + "listening": "unheard" + } + ] +} diff --git a/tools/aqua-feel/shelf.mjs b/tools/aqua-feel/shelf.mjs new file mode 100644 index 0000000..45bdea0 --- /dev/null +++ b/tools/aqua-feel/shelf.mjs @@ -0,0 +1,180 @@ +#!/usr/bin/env node +// The effects shelf: every sound AquaSynth can render headless today, as one machine-readable list (shelf.json) and a +// human page (SHELF.md), plus a check that runs each entry's render command and measures what it wrote. +// NOTHING HERE HEARS ANYTHING. `listening` stays "unheard" until a person edits it; the check proves a render is +// finite and not silent, which says nothing about whether it sounds good. +// Usage (from the repo root): +// node tools/aqua-feel/shelf.mjs build regenerate tools/aqua-feel/shelf.json and the table block of SHELF.md +// node tools/aqua-feel/shelf.mjs check [--only S] run every entry's render command, read the WAVs back, fail on silence/NaN/drift +// node tools/aqua-feel/shelf.mjs render ID [k=v ...] --out FILE.wav [--seconds N] render one patch or ding (what the entries call) +import { readFileSync, writeFileSync, mkdirSync, existsSync } from "node:fs"; +import { execSync } from "node:child_process"; +import { dirname, join, resolve } from "node:path"; +import { fileURLToPath } from "node:url"; +import { SR, SILENT_PEAK, samplePeak, measure } from "./metrics.js"; +import { loadRuntime, compile, renderOnce, renderDing, writeWav, readText, playground } from "./render.js"; +import { PATCH_SECONDS, DING_COMMAND_GAIN } from "./catalog.js"; +import { EVENTS, IDENTITIES, DEFAULT_PARAMS, PARAM_RANGES, renderFamily, fileName } from "../earcon-workshop/web/earcon.js"; + +const here = dirname(fileURLToPath(import.meta.url)), root = resolve(here, "../.."); +const SHELF_JSON = join(here, "shelf.json"), SHELF_MD = join(here, "SHELF.md"); +const OUT = "tools/aqua-feel/out/shelf"; // relative to the repo root, gitignored +const BEGIN = "", END = ""; +const dingsDir = join(here, "lowered-dings"); +const r3 = (x) => Math.round(x * 1000) / 1000; + +const args = process.argv.slice(2), cmd = args.shift(); +const flag = (n) => { const i = args.indexOf(n); if (i < 0) return undefined; return args.splice(i, 2)[1]; }; + +function controlsOf(entry) { // Faust UI -> shelf params; the ranges are the DSP's own declarations + const out = []; + const walk = (items) => { for (const it of items ?? []) { + if (it.items) walk(it.items); + else if (it.address) { + const name = it.label.replace(/^\//, ""); + if (/slider|nentry/i.test(it.type)) out.push({ name, kind: "slider", min: Number(it.min), max: Number(it.max), default: Number(it.init), step: Number(it.step) }); + else out.push({ name, kind: it.type }); // button / checkbox: reported as declared, not interpreted + } } }; + walk(JSON.parse(entry.g.factory.json).ui); + return out; +} + +async function build() { + const rt = await loadRuntime(), entries = []; + const dir = join(playground, "lowered"), cat = JSON.parse(readText(join(dir, "catalog.json"))); + for (const e of cat) { + const entry = await compile(rt, e.name, readText(join(dir, e.dsp))); + const params = controlsOf(entry), r = await renderOnce(entry, {}, PATCH_SECONDS), x = r.samples, tail = x.slice(x.length - Math.round(SR * 0.2)); + const m = measure(x), sustained = samplePeak(tail) >= 0.1 * samplePeak(x); + const isThruster = e.name === "thruster"; + entries.push({ + id: `patch/${e.name}`, group: isThruster ? "thruster" : "patch", name: e.name, family: e.name.split("-")[0], + source: e.kind === "faust" ? `tools/aqua-playground/lowered/${e.dsp}` : `tools/aqua-playground/lowered/${e.dsp} (lowered from patches/${e.origin})`, + params, + reacts_to: isThruster + ? { kind: "control", detail: "the rpm slider (300..6000, smoothed over 0.2 s): drive it from whatever number should make the thruster work harder. Nothing in the repo maps a stream metric to rpm." } + : { kind: "start", detail: "plays from the moment it is started; no gate, trigger or audio-feature input. Sliders, where listed, are live while it plays." }, + behaviour: sustained ? "sustained: still sounding at the end of the render window, runs until stopped" : "decays: dies away inside the render window", + duration_s: PATCH_SECONDS, duration_note: "the render window, not the effect's length", + render: { command: `node tools/aqua-feel/shelf.mjs render patch/${e.name} --out ${OUT}/patch_${e.name}.wav`, outputs: [{ file: `${OUT}/patch_${e.name}.wav`, duration_s: PATCH_SECONDS }] }, + ...(isThruster ? { check_variants: [300, 6000].map((rpm) => ({ params: { rpm }, command: `node tools/aqua-feel/shelf.mjs render patch/${e.name} rpm=${rpm} --out ${OUT}/patch_${e.name}_rpm${rpm}.wav`, outputs: [{ file: `${OUT}/patch_${e.name}_rpm${rpm}.wav`, duration_s: PATCH_SECONDS }] })) } : {}), + listening: "unheard", + }); + } + const d = JSON.parse(readText(join(dingsDir, "dings.json"))), instruments = d.instruments.map((i) => i.id), DEF_INS = "warm-bell"; + for (const ev of d.events) { + const dur = r3(d.noteSeconds + Math.max(...ev.notes.map((n) => n.delayMilliseconds)) / 1000); + const one = (ins) => ({ command: `node tools/aqua-feel/shelf.mjs render ding/${ev.id} instrument=${ins} --out ${OUT}/ding_${ev.id}_${ins}.wav`, outputs: [{ file: `${OUT}/ding_${ev.id}_${ins}.wav`, duration_s: dur }] }); + entries.push({ + id: `ding/${ev.id}`, group: "ding", name: ev.id, family: "dings", + source: "tools/aqua-feel/lowered-dings (lowered from src DingCatalog)", + params: [{ name: "instrument", kind: "enum", values: instruments, default: DEF_INS, note: `no instrument is the shipped default in the catalog; ${DEF_INS} is the shelf's choice` }], + reacts_to: { kind: "event", event_id: ev.id, detail: `Ding event "${ev.id}": ${ev.meaning}. A Ding event is ${ev.notes.length} note(s) at semitones ${ev.notes.map((n) => n.semitones).join(", ")} above ${d.instruments[0].rootFrequency} Hz. Mapping stream events onto Ding events is not done anywhere.` }, + behaviour: "decays", + duration_s: dur, duration_note: `${d.noteSeconds} s per note plus the last note's delay; command gain ${DING_COMMAND_GAIN} is an assumption (aqua-feel README)`, + render: one(DEF_INS), + check_variants: instruments.filter((i) => i !== DEF_INS).map((i) => ({ params: { instrument: i }, ...one(i) })), + listening: "unheard", + }); + } + for (const [id, ident] of Object.entries(IDENTITIES)) { + const fam = renderFamily(id), outDir = `${OUT}/earcon/${id}`; + entries.push({ + id: `earcon/${id}`, group: "earcon", name: id, family: "earcon-workshop", + source: "tools/earcon-workshop/web/earcon.js (plain JS reimplementation; not the Dings .aqua scripts, so it does not sound like the Dings)", + params: Object.entries(PARAM_RANGES).map(([name, [min, max, step]]) => ({ name, kind: "slider", min, max, step, default: DEFAULT_PARAMS[name] })), + reacts_to: { kind: "event", events: Object.entries(EVENTS).map(([k, v]) => ({ event_id: k, detail: v.meaning })), detail: "one WAV per event; the caller picks the file for the event it has. Voice: " + ident.note }, + behaviour: "decays", + duration_s: r3(Math.max(...fam.items.map((i) => i.durationMs)) / 1000), duration_note: "longest of the six event WAVs at default sliders", + render: { command: `node tools/earcon-workshop/cli.mjs ${id} ${outDir}`, outputs: fam.items.map((i) => ({ file: `${outDir}/${fileName(id, i.event)}`, duration_s: r3(i.durationMs / 1000) })) }, + listening: "unheard", + }); + } + return { schema: "aquasynth.effects-shelf.v0", note: "Generated by tools/aqua-feel/shelf.mjs build. Nothing here was heard: every entry's listening status is 'unheard'. Commands run from the repo root.", sampleRate: SR, entries }; +} + +function tableBlock(shelf) { + const rng = (p) => p.kind === "slider" ? `${p.name} ${p.min}..${p.max} (default ${p.default})` : p.kind === "enum" ? `${p.name} ∈ {${p.values.join(", ")}} (default ${p.default})` : `${p.name} (${p.kind})`; + const L = [BEGIN, ""]; + for (const [title, pick] of [["Thruster", (e) => e.group === "thruster"], ["Dings (event sounds)", (e) => e.group === "ding"], ["Earcon workshop (one WAV per event)", (e) => e.group === "earcon"], ["Playground patches (one-shot and sustained synth sounds)", (e) => e.group === "patch"]]) { + const es = shelf.entries.filter(pick); + L.push(`### ${title} (${es.length})`, "", "| id | reacts to | params | behaviour | duration | listening |", "|---|---|---|---|---|---|"); + for (const e of es) { + const re = e.reacts_to.kind === "event" && e.reacts_to.events ? `events: ${e.reacts_to.events.map((v) => v.event_id).join(", ")}` : e.reacts_to.kind === "event" ? `event \`${e.reacts_to.event_id}\`` : e.reacts_to.kind === "control" ? "control: rpm" : "start"; + L.push(`| \`${e.id}\` | ${re} | ${e.params.map(rng).join("; ") || "none"} | ${e.behaviour.split(":")[0]} | ${e.duration_s} s | ${e.listening} |`); + } + L.push(""); + } + L.push(END); + return L.join("\n"); +} + +function writeShelf(shelf) { + writeFileSync(SHELF_JSON, JSON.stringify(shelf, null, 1) + "\n"); + const md = readFileSync(SHELF_MD, "utf8"), a = md.indexOf(BEGIN), b = md.indexOf(END); + if (a < 0 || b < 0) throw new Error("SHELF.md has no generated block markers"); + writeFileSync(SHELF_MD, md.slice(0, a) + tableBlock(shelf) + md.slice(b + END.length)); +} + +// ---- render: what the entries' commands call ------------------------------------------------------------------------ +async function render() { + const out = flag("--out"), seconds = flag("--seconds"), [id, ...kv] = args; + if (!id || !out) { console.error("usage: shelf.mjs render ID [k=v ...] --out FILE.wav [--seconds N]"); process.exit(2); } + const params = Object.fromEntries(kv.map((s) => s.split("=")).map(([k, v]) => [k, isNaN(Number(v)) ? v : Number(v)])); + const rt = await loadRuntime(); let samples; + if (id.startsWith("patch/")) { + const name = id.slice(6), dir = join(playground, "lowered"), e = JSON.parse(readText(join(dir, "catalog.json"))).find((x) => x.name === name); + if (!e) { console.error(`no patch ${name}`); process.exit(2); } + samples = (await renderOnce(await compile(rt, name, readText(join(dir, e.dsp))), params, seconds ? Number(seconds) : PATCH_SECONDS)).samples; + } else if (id.startsWith("ding/")) { + const d = JSON.parse(readText(join(dingsDir, "dings.json"))), ev = d.events.find((x) => x.id === id.slice(5)), ins = d.instruments.find((x) => x.id === (params.instrument ?? "warm-bell")); + if (!ev || !ins) { console.error(`no ding event ${id.slice(5)} / instrument ${params.instrument}`); process.exit(2); } + samples = (await renderDing(rt, ins, readText(join(dingsDir, ins.dsp)), ev, { noteSeconds: d.noteSeconds, commandGain: DING_COMMAND_GAIN })).samples; + } else { console.error("render handles patch/ and ding/ ids; earcon entries use tools/earcon-workshop/cli.mjs"); process.exit(2); } + writeWav(resolve(out), samples); + console.log(`wrote ${out} (${(samples.length / SR).toFixed(3)} s)`); +} + +// ---- check ----------------------------------------------------------------------------------------------------------- +function readWav(path) { // PCM16 or float32 mono, as this repo's two writers produce + const b = readFileSync(path), v = new DataView(b.buffer, b.byteOffset, b.byteLength); + if (b.toString("latin1", 0, 4) !== "RIFF" || b.toString("latin1", 8, 12) !== "WAVE") throw new Error("not a RIFF/WAVE file"); + const tag = v.getUint16(20, true), ch = v.getUint16(22, true), sr = v.getUint32(24, true), bits = v.getUint16(34, true), n = v.getUint32(40, true) / (bits / 8); + if (ch !== 1 || !((tag === 1 && bits === 16) || (tag === 3 && bits === 32))) throw new Error(`unsupported wav tag ${tag} bits ${bits} channels ${ch}`); + const x = new Float32Array(n); + for (let i = 0; i < n; i++) x[i] = tag === 3 ? v.getFloat32(44 + i * 4, true) : v.getInt16(44 + i * 2, true) / 32768; + return { sr, x }; +} + +async function check() { + const only = flag("--only"), problems = [], rows = []; + mkdirSync(join(root, OUT), { recursive: true }); + const fresh = await build(), onDisk = existsSync(SHELF_JSON) ? readFileSync(SHELF_JSON, "utf8") : ""; + if (onDisk !== JSON.stringify(fresh, null, 1) + "\n") problems.push("shelf.json is stale: run `node tools/aqua-feel/shelf.mjs build`"); + const md = readFileSync(SHELF_MD, "utf8"), a = md.indexOf(BEGIN), b = md.indexOf(END); + if (a < 0 || md.slice(a, b + END.length) !== tableBlock(fresh)) problems.push("SHELF.md table block is stale: run `node tools/aqua-feel/shelf.mjs build`"); + for (const e of fresh.entries.filter((x) => !only || x.id.includes(only))) { + if (e.listening !== "unheard") problems.push(`${e.id}: listening is '${e.listening}'; this check cannot confirm that`); + for (const r of [e.render, ...(e.check_variants ?? [])]) { + try { + execSync(r.command, { cwd: root, stdio: ["ignore", "pipe", "pipe"] }); + for (const o of r.outputs) { + const { sr, x } = readWav(join(root, o.file)), peak = samplePeak(x), dur = x.length / sr; + if (sr !== SR) throw new Error(`${o.file}: sample rate ${sr}`); + if (!x.every(Number.isFinite)) throw new Error(`${o.file}: non-finite samples`); + if (peak < SILENT_PEAK) throw new Error(`${o.file}: silent (peak ${peak}, floor ${SILENT_PEAK.toFixed(6)})`); + if (Math.abs(dur - o.duration_s) > 0.01) throw new Error(`${o.file}: ${dur.toFixed(3)} s, shelf says ${o.duration_s} s`); + rows.push(`ok ${o.file.replace(OUT + "/", "")} peak ${(20 * Math.log10(peak)).toFixed(1)} dBFS ${dur.toFixed(3)} s [${r.command}]`); + } + } catch (err) { problems.push(`${e.id}: ${r.command}\n ${String(err.message ?? err).split("\n")[0]}`); } + } + } + console.log(rows.join("\n")); + console.log(`\n${rows.length} rendered file(s) checked across ${fresh.entries.filter((x) => !only || x.id.includes(only)).length} entries. Nothing here was heard.`); + if (problems.length) { console.log(`\nFAIL (${problems.length}):\n` + problems.map((p) => " " + p).join("\n")); process.exit(1); } + console.log("PASS: every render command ran, every WAV is finite, not silent, and as long as the shelf says; shelf.json and SHELF.md are current."); +} + +const cmds = { build: async () => { const s = await build(); writeShelf(s); console.log(`wrote ${SHELF_JSON}: ${s.entries.length} entries`); }, render, check }; +if (!cmds[cmd]) { console.error(readFileSync(fileURLToPath(import.meta.url), "utf8").split("\n").slice(1, 9).join("\n")); process.exit(2); } +await cmds[cmd](); From aec15751cc005cb410ebb92370da89c3849eb167 Mon Sep 17 00:00:00 2001 From: Aqua Date: Sat, 7 Nov 2026 11:51:44 +0000 Subject: [PATCH 02/86] StoreFileName tests: device lookalikes and IPA pair distinctness Adds CON.tar.gz to the device-stem cases, a lookalike theory (trailing space, superscript digit, accented letter, trailing dot) and a 6x6 IPA round grid whose ids and script paths must stay distinct. Tests only. Co-Authored-By: Claude Sonnet 5.5 --- .../AquaSynth.Dsl.Tests/StoreFileNameTests.cs | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/tests/AquaSynth.Dsl.Tests/StoreFileNameTests.cs b/tests/AquaSynth.Dsl.Tests/StoreFileNameTests.cs index 8da1f52..0e3f5da 100644 --- a/tests/AquaSynth.Dsl.Tests/StoreFileNameTests.cs +++ b/tests/AquaSynth.Dsl.Tests/StoreFileNameTests.cs @@ -45,6 +45,7 @@ public sealed class StoreFileNameTests [InlineData("prn.cc")] [InlineData("nul.x")] [InlineData("LPT1.x")] + [InlineData("CON.tar.gz")] public void WindowsDeviceStemsAreRewritten(string id) { var name = StoreFileName.From(id); @@ -55,6 +56,20 @@ public sealed class StoreFileNameTests Assert.DoesNotMatch("^(?i:con|prn|aux|nul|com[0-9]|lpt[0-9])$", stem); } + [Theory] + [InlineData("nul ")] + [InlineData("COM\u00b9")] + [InlineData("COM1 .x")] + [InlineData("con\u00e9.x")] + [InlineData("NUL.")] + public void DeviceLookalikesNeverLeaveAReservedStem(string id) + { + var name = StoreFileName.From(id); + Assert.Matches("^[A-Za-z0-9._-]+$", name); + Assert.DoesNotMatch("^(?i:con|prn|aux|nul|com[0-9]|lpt[0-9])$", name.Split('.')[0].TrimEnd(' ')); + Assert.Matches("-[0-9a-f]{16}$", name); + } + [Fact] public void OverlongIdsAreBoundedAndStayDistinct() { @@ -148,6 +163,23 @@ public sealed class StoreFileNameTests Assert.Equal(4, result.Candidates.Select(c => c.ScriptPath).Distinct(StringComparer.OrdinalIgnoreCase).Count()); } + [Fact] + public void IpaRoundPairsWithSeparatorCharactersInIdsStayDistinct() + { + var root = Path.Combine(Path.GetTempPath(), $"aquasynth-ipa-pair-{Guid.NewGuid():N}"); + string[] targets = ["a", "a/b", "a-b", "a_b", "A", "a b"]; + string[] variants = ["b-c", "c", "b/c", "b_c", "B-C", "b c"]; + var result = IpaGestureExperiment.WriteRound( + root, + "round-pairs", + targets.Select(t => new IpaGestureExperimentTarget(t, "p", "voiceless_bilabial_plosive", .1f)).ToArray(), + variants.Select(v => new IpaGestureExperimentVariant(v)).ToArray()); + + Assert.Equal(36, result.Candidates.Count); + Assert.Equal(36, result.Candidates.Select(c => c.Id).Distinct(StringComparer.OrdinalIgnoreCase).Count()); + Assert.Equal(36, result.Candidates.Select(c => c.ScriptPath).Distinct(StringComparer.OrdinalIgnoreCase).Count()); + } + [Theory] [InlineData("../x")] [InlineData("..\\x")] From 9fa30ef9d3ad5035a475dbfebf3841946d1f77ad Mon Sep 17 00:00:00 2001 From: Aqua Date: Sun, 8 Nov 2026 00:51:14 +0000 Subject: [PATCH 03/86] aqua-listen: listening-test kit (manifest + clips -> one self-contained HTML page) Blind randomized order and A/B pairs, consent first, keep/fix/drop + reason + 1-5 landed + headphones/speakers, localStorage autosave, export of verdict.json and verdict.md. CSP default-src 'none': no network. 16 node tests; headless Chromium smoke script. Nothing was heard. Co-Authored-By: Claude Sonnet 5.5 --- tools/aqua-listen/README.md | 59 +++++++++++++++++ tools/aqua-listen/build.mjs | 54 +++++++++++++++ tools/aqua-listen/logic.cjs | 103 +++++++++++++++++++++++++++++ tools/aqua-listen/package.json | 7 ++ tools/aqua-listen/smoke.mjs | 38 +++++++++++ tools/aqua-listen/test.mjs | 109 +++++++++++++++++++++++++++++++ tools/aqua-listen/web/index.html | 16 +++++ tools/aqua-listen/web/page.js | 109 +++++++++++++++++++++++++++++++ tools/aqua-listen/web/styles.css | 18 +++++ 9 files changed, 513 insertions(+) create mode 100644 tools/aqua-listen/README.md create mode 100644 tools/aqua-listen/build.mjs create mode 100644 tools/aqua-listen/logic.cjs create mode 100644 tools/aqua-listen/package.json create mode 100644 tools/aqua-listen/smoke.mjs create mode 100644 tools/aqua-listen/test.mjs create mode 100644 tools/aqua-listen/web/index.html create mode 100644 tools/aqua-listen/web/page.js create mode 100644 tools/aqua-listen/web/styles.css diff --git a/tools/aqua-listen/README.md b/tools/aqua-listen/README.md new file mode 100644 index 0000000..eb3886e --- /dev/null +++ b/tools/aqua-listen/README.md @@ -0,0 +1,59 @@ +# aqua-listen + +A listening-test kit: a folder of sound clips and a manifest become **one HTML file** you can send to a listener. They open it, listen, say keep / fix / drop for each sound, and send back two small files. + +**Status:** the page was driven in headless Chromium (consent gate, autosave across reload, export, zero network requests) and `node test.mjs` covers validation, ordering and the export shape. Nobody has listened with it yet, and the headless browser played nothing audibly; real playback on a phone or other browser is untried. + +## For the listener (no technical knowledge needed) + +1. Open the `listen.html` file you were sent by double-clicking it. Any recent browser works. +2. Read the short note and tick the box. You can type a nickname or leave it blank. +3. Pick **headphones** or **speakers** at the top, whichever you are using. Change it if you switch. +4. For each sound: press play (as often as you like), read what it is *meant* to feel like, then choose + - **keep** (good as it is), **fix** (nearly, but something is wrong), or **drop** (not worth having), + - how well it **landed**, from 1 (not at all) to 5 (completely), + - and one line on why. +5. Some sounds come as a pair, **A** and **B**. Rate both, then say which you prefer, or that there is no difference. +6. The sounds are in a random order and their names are hidden on purpose. Please don't hunt for them. +7. Your answers save themselves in your browser as you go. You can close the tab and come back to the same file later. +8. When done, press **Export**. Two files land in your downloads: `verdict.json` and `verdict.md`. Send both to whoever gave you the page. That is the only way anything leaves your computer. + +Privacy: the page has no network access at all (the browser is told to refuse it), no account, no tracking. "Erase my answers" at the bottom wipes what the page saved. + +## For the person building a kit + +``` +node build.mjs --manifest kit.json --clips ./clips --out ./dist # writes dist/listen.html +node test.mjs # 16 checks, no dependencies, no browser +node smoke.mjs dist/listen.html # optional browser smoke, see below +``` + +`kit.json`: + +```json +{ "kit": { "id": "my-kit-1", "title": "Thruster sweep", "note": "optional line shown under the title" }, + "clips": [ + { "id": "t1", "file": "thr-a.wav", "title": "Thruster, low", "feel": "heavy, steady, not hissy", "group": "thruster", "pair": "t2" }, + { "id": "t2", "file": "thr-b.wav", "title": "Thruster, low, tonal", "feel": "heavy, steady, not hissy", "group": "thruster", "pair": "t1" } +] } +``` + +- `id`, `file` (wav, mp3, ogg or flac, relative to `--clips`), `title`, `feel` (intended feel; shown to the listener), `group`: required. `pair`: optional, must name another clip whose `pair` names this one. Anything wrong stops the build with the full list of problems. +- Title, id and group are hidden from the listener and appear only in the export. The intended feel is shown, since "did it land" needs it. +- Order is shuffled from a random seed kept with the listener's answers (it is in the export). A pair is shuffled as one unit, with A/B position shuffled inside it. +- Audio is embedded as-is (base64), so the page is about 1.4x the clip bytes. The build warns over 100 MB. +- Autosave key is the kit id plus a hash of the manifest and clip bytes: a rebuilt kit with changed clips starts fresh instead of mixing answers. + +### Export + +`verdict.json` (`schema: "aqua.listen.verdict.v1"`): `kit`, `exportedAt`, `seed`, `consent`, `listener`, `device`, `notes`, `summary` (counts), `clips[]` in the order heard (`position, id, title, group, feel, file, pair, slot, verdict, reason, landed, device`), `pairs[]` (`a, b, preferred`: a clip id or `no-difference`). `verdict.md` is the same as a table. Unanswered fields are `null`. + +The blank verdict files this was meant to match were not found under `/opt/commons/handoff/`, so this shape is the kit's own. If a house format exists, the change is in `buildVerdict` / `verdictMarkdown` in `logic.cjs`. + +### Browser smoke + +`PLAYWRIGHT_CORE=/path/to/playwright-core CHROME=/path/to/chrome node smoke.mjs dist/listen.html` ticks through consent, answers a clip, reloads, exports, and fails on any network request or page error. It is not in `node test.mjs` because the repo carries no browser dependency. + +## Files + +`logic.cjs` validation, ordering, export shape (shared by build, page, tests) · `build.mjs` assembles the page · `web/` page template, glue and styles · `test.mjs` · `smoke.mjs` diff --git a/tools/aqua-listen/build.mjs b/tools/aqua-listen/build.mjs new file mode 100644 index 0000000..16526ab --- /dev/null +++ b/tools/aqua-listen/build.mjs @@ -0,0 +1,54 @@ +#!/usr/bin/env node +// Builds one self-contained listening page. Usage: +// node build.mjs --manifest kit.json --clips DIR --out DIR (writes DIR/listen.html; --clips defaults to the manifest's folder) +import { readFileSync, writeFileSync, mkdirSync, existsSync, statSync } from "node:fs"; +import { createHash } from "node:crypto"; +import { createRequire } from "node:module"; +import { dirname, extname, join, resolve } from "node:path"; +import { fileURLToPath } from "node:url"; + +const here = dirname(fileURLToPath(import.meta.url)); +const L = createRequire(import.meta.url)("./logic.cjs"); +const MIME = { ".wav": "audio/wav", ".mp3": "audio/mpeg", ".ogg": "audio/ogg", ".flac": "audio/flac" }; + +// Throws one Error listing every manifest problem and every missing file. Returns {html, hash, bytes}. +export function buildKit(manifest, clipsDir) { + const errs = L.validateManifest(manifest); + if (errs.length === 0) for (const c of manifest.clips) { + const f = resolve(clipsDir, c.file); + if (!f.startsWith(resolve(clipsDir) + "/") && !f.startsWith(resolve(clipsDir) + "\\")) errs.push(`clip ${c.id}: ${c.file} leaves the clips folder`); + else if (!existsSync(f) || !statSync(f).isFile()) errs.push(`clip ${c.id}: file not found: ${c.file}`); + } + if (errs.length) throw new Error("manifest invalid:\n " + errs.join("\n ")); + const audio = {}, h = createHash("sha256"); + h.update(JSON.stringify(manifest)); + for (const c of manifest.clips) { + const buf = readFileSync(resolve(clipsDir, c.file)); + h.update(buf); + audio[c.id] = { mime: MIME[extname(c.file).toLowerCase()], b64: buf.toString("base64") }; + } + const hash = h.digest("hex").slice(0, 8); + const data = JSON.stringify({ manifest, hash, audio }).replace(/{const module={exports:{}};${readFileSync(join(here, "logic.cjs"), "utf8")}\nreturn module.exports})();`; + const part = (n) => readFileSync(join(here, "web", n), "utf8"); + const esc = (s) => s.replace(/&/g, "&").replace(/ esc(manifest.kit.title)).replace("/*STYLES*/", () => part("styles.css")) + .replace("/*DATA*/", () => data).replace("/*LOGIC*/", () => logic.replace(/<\/script/gi, "<\\/script")).replace("/*PAGE*/", () => part("page.js").replace(/<\/script/gi, "<\\/script")); + return { html, hash, bytes: Buffer.byteLength(html) }; +} + +if (process.argv[1] === fileURLToPath(import.meta.url)) { + const a = process.argv.slice(2), opt = (n) => { const i = a.indexOf(n); return i < 0 ? undefined : a[i + 1]; }; + const mf = opt("--manifest"), out = opt("--out"); + if (!mf || !out) { console.error("usage: node build.mjs --manifest kit.json --clips DIR --out DIR"); process.exit(2); } + try { + const manifest = JSON.parse(readFileSync(mf, "utf8")); + const r = buildKit(manifest, resolve(opt("--clips") ?? dirname(resolve(mf)))); + mkdirSync(out, { recursive: true }); + writeFileSync(join(out, "listen.html"), r.html); + console.log(`built ${join(out, "listen.html")}\nclips ${manifest.clips.length} bytes ${r.bytes} hash ${r.hash}`); + if (r.bytes > 100e6) console.log("warning: over 100 MB; some browsers and mail systems will struggle. Trim clips."); + } catch (e) { console.error(e.message); process.exit(1); } +} diff --git a/tools/aqua-listen/logic.cjs b/tools/aqua-listen/logic.cjs new file mode 100644 index 0000000..e7aec25 --- /dev/null +++ b/tools/aqua-listen/logic.cjs @@ -0,0 +1,103 @@ +// Shared by build.mjs, the page and test.mjs. CommonJS so build.mjs can inline this file into the page verbatim. +"use strict"; +const SCHEMA = "aqua.listen.verdict.v1"; +const VERDICTS = ["keep", "fix", "drop"]; +const DEVICES = ["headphones", "speakers"]; +const AUDIO_EXT = /\.(wav|mp3|ogg|flac)$/i; + +// Manifest: { kit: {id, title, note?}, clips: [{id, file, title, feel, group, pair?}] }. Returns a list of problems (empty = valid). +function validateManifest(m) { + const errs = []; + const str = (v) => typeof v === "string" && v.trim() !== ""; + if (!m || typeof m !== "object" || Array.isArray(m)) return ["manifest must be an object with `kit` and `clips`"]; + if (!m.kit || !str(m.kit.id) || !/^[A-Za-z0-9._-]+$/.test(m.kit.id)) errs.push("kit.id must be a non-empty string of letters, digits, . _ -"); + if (!m.kit || !str(m.kit.title)) errs.push("kit.title is required"); + if (!Array.isArray(m.clips) || m.clips.length === 0) { errs.push("clips must be a non-empty array"); return errs; } + const byId = new Map(); + m.clips.forEach((c, i) => { + const at = `clips[${i}]${c && str(c.id) ? ` (${c.id})` : ""}`; + if (!c || typeof c !== "object") { errs.push(`${at}: must be an object`); return; } + for (const k of ["id", "file", "title", "feel", "group"]) if (!str(c[k])) errs.push(`${at}: ${k} is required`); + if (c.pair !== undefined && !str(c.pair)) errs.push(`${at}: pair must be a clip id`); + if (str(c.file)) { + if (!AUDIO_EXT.test(c.file)) errs.push(`${at}: file must be .wav, .mp3, .ogg or .flac`); + if (/^([A-Za-z]:|[\\/])/.test(c.file) || c.file.split(/[\\/]/).includes("..")) errs.push(`${at}: file must be a relative path inside the clips folder`); + } + if (str(c.id)) { if (byId.has(c.id)) errs.push(`${at}: duplicate id`); else byId.set(c.id, c); } + }); + for (const c of m.clips) { + if (!c || !str(c.pair) || !str(c.id)) continue; + const at = `clip ${c.id}`, o = byId.get(c.pair); + if (c.pair === c.id) errs.push(`${at}: cannot be paired with itself`); + else if (!o) errs.push(`${at}: pair ${c.pair} is not a clip id`); + else if (o.pair !== c.id) errs.push(`${at}: pair ${c.pair} does not point back (pairs must be mutual)`); + } + return errs; +} + +function rng(seed) { // mulberry32 + let a = seed >>> 0; + return () => { a = (a + 0x6d2b79f5) >>> 0; let t = a; t = Math.imul(t ^ (t >>> 15), t | 1); t ^= t + Math.imul(t ^ (t >>> 7), t | 61); return ((t ^ (t >>> 14)) >>> 0) / 4294967296; }; +} +function shuffle(xs, r) { const a = xs.slice(); for (let i = a.length - 1; i > 0; i--) { const j = Math.floor(r() * (i + 1)); [a[i], a[j]] = [a[j], a[i]]; } return a; } + +// Presentation order from a seed: singles and A/B pairs are shuffled as units; inside a pair the A/B position is shuffled. +// Returns [{id, slot: 'A'|'B'|null}], a pair's two clips adjacent. +function planOrder(clips, seed) { + const r = rng(seed), seen = new Set(), units = []; + for (const c of clips) { + if (seen.has(c.id)) continue; + seen.add(c.id); + if (c.pair) { seen.add(c.pair); units.push([c.id, c.pair]); } else units.push([c.id]); + } + const out = []; + for (const u of shuffle(units, r)) { + if (u.length === 1) out.push({ id: u[0], slot: null }); + else { const [x, y] = shuffle(u, r); out.push({ id: x, slot: "A" }, { id: y, slot: "B" }); } + } + return out; +} + +// state: {seed, consent, listener, device, notes, answers: {id: {verdict, reason, landed, device}}, pairs: {"idA|idB": 'A'|'B'|'same'}} +function buildVerdict(manifest, order, state, now) { + const byId = new Map(manifest.clips.map((c) => [c.id, c])); + const slot = new Map(order.map((o) => [o.id, o.slot])); + const clips = order.map((o, i) => { + const c = byId.get(o.id), a = state.answers[o.id] || {}; + return { position: i + 1, id: c.id, title: c.title, group: c.group, feel: c.feel, file: c.file, + pair: c.pair || null, slot: o.slot, + verdict: VERDICTS.includes(a.verdict) ? a.verdict : null, reason: a.reason || "", + landed: Number.isInteger(a.landed) && a.landed >= 1 && a.landed <= 5 ? a.landed : null, + device: DEVICES.includes(a.device) ? a.device : null }; + }); + const pairs = []; + for (const o of order) { + const c = byId.get(o.id); + if (o.slot !== "A") continue; + const key = `${o.id}|${c.pair}`, p = state.pairs[key]; + pairs.push({ a: o.id, b: c.pair, preferred: p === "A" ? o.id : p === "B" ? c.pair : p === "same" ? "no-difference" : null }); + } + const count = (v) => clips.filter((c) => c.verdict === v).length; + return { schema: SCHEMA, kit: { id: manifest.kit.id, title: manifest.kit.title }, exportedAt: now, seed: state.seed, + consent: !!state.consent, listener: state.listener || "", device: state.device || null, notes: state.notes || "", + summary: { total: clips.length, keep: count("keep"), fix: count("fix"), drop: count("drop"), unanswered: clips.filter((c) => !c.verdict).length }, + clips, pairs }; +} + +const cell = (s) => String(s ?? "").replace(/\|/g, "\\|").replace(/\r?\n/g, " "); +function verdictMarkdown(v) { + const L = [`# Listening verdict: ${v.kit.title}`, "", + `Kit \`${v.kit.id}\`, exported ${v.exportedAt}, seed ${v.seed}. Listener: ${v.listener || "(anonymous)"}. Listening on: ${v.device || "not stated"}.`, + `Consent given: ${v.consent ? "yes" : "no"}.`, "", + `**${v.summary.keep} keep, ${v.summary.fix} fix, ${v.summary.drop} drop, ${v.summary.unanswered} unanswered** of ${v.summary.total}.`, "", + "| # | clip | group | intended feel | verdict | landed (1-5) | device | reason |", "|---|---|---|---|---|---|---|---|"]; + for (const c of v.clips) L.push(`| ${c.position} | ${cell(c.title)} (\`${cell(c.id)}\`)${c.slot ? ` [${c.slot}]` : ""} | ${cell(c.group)} | ${cell(c.feel)} | ${c.verdict ?? "-"} | ${c.landed ?? "-"} | ${c.device ?? "-"} | ${cell(c.reason)} |`); + if (v.pairs.length) { + L.push("", "## A/B pairs", "", "| A | B | preferred |", "|---|---|---|"); + for (const p of v.pairs) L.push(`| \`${p.a}\` | \`${p.b}\` | ${p.preferred ?? "-"} |`); + } + if (v.notes) L.push("", "## Notes", "", v.notes); + return L.join("\n") + "\n"; +} + +module.exports = { SCHEMA, VERDICTS, DEVICES, AUDIO_EXT, validateManifest, planOrder, buildVerdict, verdictMarkdown, rng }; diff --git a/tools/aqua-listen/package.json b/tools/aqua-listen/package.json new file mode 100644 index 0000000..0254838 --- /dev/null +++ b/tools/aqua-listen/package.json @@ -0,0 +1,7 @@ +{ + "name": "aqua-listen", + "private": true, + "type": "module", + "description": "Listening-test kit builder: a folder of clips and a manifest become one self-contained HTML page that collects keep/fix/drop verdicts. No dependencies.", + "scripts": { "build": "node build.mjs", "test": "node test.mjs" } +} diff --git a/tools/aqua-listen/smoke.mjs b/tools/aqua-listen/smoke.mjs new file mode 100644 index 0000000..471eb0c --- /dev/null +++ b/tools/aqua-listen/smoke.mjs @@ -0,0 +1,38 @@ +// Browser smoke for a built page: node smoke.mjs listen.html (needs playwright-core and a Chromium; set PLAYWRIGHT_CORE=/path/to/playwright-core +// and optionally CHROME=/path/to/chrome). Not part of `node test.mjs`: the repo has no browser dependency. +import { createRequire } from "node:module"; +import { readFileSync } from "node:fs"; +import { resolve } from "node:path"; +const { chromium } = createRequire(import.meta.url)(process.env.PLAYWRIGHT_CORE ?? "playwright-core"); +const file = resolve(process.argv[2]); +const browser = await chromium.launch({ executablePath: process.env.CHROME || undefined }); +const ctx = await browser.newContext({ acceptDownloads: true }), page = await ctx.newPage(); +const requests = [], errors = []; +page.on("request", (r) => { if (!r.url().startsWith("file:") && !r.url().startsWith("blob:") && !r.url().startsWith("data:")) requests.push(r.url()); }); +page.on("pageerror", (e) => errors.push(e.message)); +await page.goto("file://" + file); +const check = (c, m) => { if (!c) { console.error("FAIL", m); process.exitCode = 1; } else console.log("ok", m); }; +check(await page.locator("button:has-text('Start listening')").isDisabled(), "Start is disabled until consent is ticked"); +check((await page.locator("audio").count()) === 0, "no clip is shown before consent"); +await page.check("#consent"); await page.fill("#alias", "Tester"); await page.click("button:has-text('Start listening')"); +const total = await page.locator("audio").count(); +check(total > 0, `${total} clips shown after consent`); +check(!/Title|title/.test(await page.locator("main").innerText()), "titles are hidden while listening"); +await page.check("input[name=device][value=headphones]"); +const first = page.locator("section.card").first(); +await first.locator("input[value=fix]").check(); await first.locator("input[type=radio][name^=l-][value='4']").check(); await first.locator("input[type=text]").fill("a bit thin"); +await page.reload(); +check(await page.locator("section.card").first().locator("input[value=fix]").isChecked(), "answers survive a reload (localStorage autosave)"); +check((await page.locator("section.card").first().locator("input[type=text]").inputValue()) === "a bit thin", "reason survives a reload"); +const got = []; +page.on("download", (d) => got.push(d)); +await page.click("button:has-text('Export')"); +for (let i = 0; i < 50 && got.length < 2; i++) await page.waitForTimeout(100); +const names = got.map((d) => d.suggestedFilename()).sort(); +check(names.join() === "verdict.json,verdict.md", "export downloads verdict.json and verdict.md"); +const v = JSON.parse(readFileSync(await got.find((d) => d.suggestedFilename() === "verdict.json").path(), "utf8")); +check(v.listener === "Tester" && v.device === "headphones" && v.clips[0].verdict === "fix" && v.clips[0].landed === 4 && v.clips[0].device === "headphones", "verdict.json carries the answers"); +check(v.consent === true && v.clips.length === total, "consent recorded, every clip present"); +check(requests.length === 0, `no network requests (${requests.join(", ")})`); +check(errors.length === 0, `no page errors (${errors.join("; ")})`); +await browser.close(); diff --git a/tools/aqua-listen/test.mjs b/tools/aqua-listen/test.mjs new file mode 100644 index 0000000..702e122 --- /dev/null +++ b/tools/aqua-listen/test.mjs @@ -0,0 +1,109 @@ +// node test.mjs: manifest validation, ordering, verdict export shape, and the built page's isolation. No browser; see README for the browser smoke. +import assert from "node:assert/strict"; +import { createRequire } from "node:module"; +import { mkdtempSync, writeFileSync, mkdirSync } from "node:fs"; +import { tmpdir } from "node:os"; +import { join } from "node:path"; +import { buildKit } from "./build.mjs"; + +const L = createRequire(import.meta.url)("./logic.cjs"); +let n = 0; +const test = (name, fn) => { fn(); n++; console.log("ok", name); }; +const clip = (id, extra = {}) => ({ id, file: `${id}.wav`, title: `Title ${id}`, feel: "calm", group: "g", ...extra }); +const mf = (clips) => ({ kit: { id: "k1", title: "Kit" }, clips }); +const has = (m, re) => L.validateManifest(m).some((e) => re.test(e)); + +test("a valid manifest has no problems", () => assert.deepEqual(L.validateManifest(mf([clip("a", { pair: "b" }), clip("b", { pair: "a" }), clip("c")])), [])); +test("manifest must be an object with clips", () => { assert.ok(L.validateManifest([]).length); assert.ok(has(mf([]), /non-empty/)); }); +test("kit id and title are required", () => { assert.ok(has({ kit: { id: "a b", title: "x" }, clips: [clip("a")] }, /kit\.id/)); assert.ok(has({ kit: { id: "a" }, clips: [clip("a")] }, /kit\.title/)); }); +test("every clip field is required", () => { for (const k of ["id", "file", "title", "feel", "group"]) { const c = clip("a"); delete c[k]; assert.ok(has(mf([c]), new RegExp(k + " is required")), k); } }); +test("duplicate ids are rejected", () => assert.ok(has(mf([clip("a"), clip("a", { file: "z.wav" })]), /duplicate id/))); +test("files must be audio and stay inside the folder", () => { + assert.ok(has(mf([clip("a", { file: "a.txt" })]), /must be \.wav/)); + assert.ok(has(mf([clip("a", { file: "../a.wav" })]), /relative path/)); + assert.ok(has(mf([clip("a", { file: "/etc/a.wav" })]), /relative path/)); + assert.ok(has(mf([clip("a", { file: "C:\\a.wav" })]), /relative path/)); +}); +test("pairs must exist, be mutual, and not be self", () => { + assert.ok(has(mf([clip("a", { pair: "zz" })]), /not a clip id/)); + assert.ok(has(mf([clip("a", { pair: "b" }), clip("b")]), /does not point back/)); + assert.ok(has(mf([clip("a", { pair: "b" }), clip("b", { pair: "c" }), clip("c", { pair: "b" })]), /does not point back/)); + assert.ok(has(mf([clip("a", { pair: "a" })]), /itself/)); +}); + +const clips = Array.from({ length: 12 }, (_, i) => clip("c" + i, i < 4 ? { pair: i % 2 ? "c" + (i - 1) : "c" + (i + 1) } : {})); +test("order is deterministic per seed, covers every clip once, and varies by seed", () => { + const a = L.planOrder(clips, 7), b = L.planOrder(clips, 7); + assert.deepEqual(a, b); + assert.deepEqual(a.map((o) => o.id).sort(), clips.map((c) => c.id).sort()); + assert.notDeepEqual(L.planOrder(clips, 8).map((o) => o.id), a.map((o) => o.id)); +}); +test("a pair is adjacent, slotted A then B, and both clips take position A across seeds", () => { + const firstA = new Set(); + for (let s = 1; s <= 40; s++) { + const o = L.planOrder(clips, s); + o.forEach((x, i) => { if (x.slot === "A") { assert.equal(o[i + 1].slot, "B"); assert.equal(clips.find((c) => c.id === x.id).pair, o[i + 1].id); if (x.id === "c0" || x.id === "c1") firstA.add(x.id); } else if (x.slot === null) assert.ok(!clips.find((c) => c.id === x.id).pair); }); + } + assert.deepEqual([...firstA].sort(), ["c0", "c1"]); +}); + +const manifest = mf([clip("a", { pair: "b", title: "Pipe | one" }), clip("b", { pair: "a" }), clip("c")]); +test("verdict.json has the exported shape", () => { + const order = [{ id: "c", slot: null }, { id: "b", slot: "A" }, { id: "a", slot: "B" }]; + const v = L.buildVerdict(manifest, order, { seed: 5, consent: true, listener: "Pat", device: "headphones", notes: "hi", + answers: { c: { verdict: "keep", reason: "clean", landed: 5, device: "headphones" }, a: { verdict: "bogus", landed: 9 } }, pairs: { "b|a": "B" } }, "2026-01-01T00:00:00Z"); + assert.equal(v.schema, L.SCHEMA); + assert.deepEqual(Object.keys(v), ["schema", "kit", "exportedAt", "seed", "consent", "listener", "device", "notes", "summary", "clips", "pairs"]); + assert.deepEqual(v.summary, { total: 3, keep: 1, fix: 0, drop: 0, unanswered: 2 }); + assert.deepEqual(Object.keys(v.clips[0]), ["position", "id", "title", "group", "feel", "file", "pair", "slot", "verdict", "reason", "landed", "device"]); + assert.deepEqual(v.clips.map((c) => c.id), ["c", "b", "a"]); + assert.equal(v.clips[0].verdict, "keep"); assert.equal(v.clips[0].landed, 5); + assert.equal(v.clips[2].verdict, null, "an unknown verdict is blank, not passed through"); assert.equal(v.clips[2].landed, null, "landed outside 1-5 is blank"); + assert.deepEqual(v.pairs, [{ a: "b", b: "a", preferred: "a" }], "pair choice B means the clip shown second"); + JSON.parse(JSON.stringify(v)); +}); +test("verdict.md lists every clip, escapes pipes, and states the totals", () => { + const order = L.planOrder(manifest.clips, 3); + const v = L.buildVerdict(manifest, order, { seed: 3, consent: true, answers: { c: { verdict: "drop", reason: "line1\nline2 | x", landed: 1 } }, pairs: {} }, "t"); + const md = L.verdictMarkdown(v); + assert.match(md, /^# Listening verdict: Kit/); + assert.match(md, /0 keep, 0 fix, 1 drop, 2 unanswered\*\* of 3/); + assert.match(md, /Pipe \\\| one/); assert.match(md, /line1 line2 \\\| x/); + assert.equal(md.split("\n").filter((l) => /^\| \d+ \|/.test(l)).length, 3); + assert.match(md, /## A\/B pairs/); +}); + +const dir = mkdtempSync(join(tmpdir(), "aqua-listen-")); +const wav = Buffer.alloc(44 + 400); wav.write("RIFF", 0); wav.write("WAVE", 8); +for (const id of ["a", "b", "c"]) writeFileSync(join(dir, id + ".wav"), wav); +test("the built page is one file with no network reach", () => { + const r = buildKit(manifest, dir), h = r.html; + assert.match(h, /Content-Security-Policy" content="default-src 'none'/); + assert.doesNotMatch(h, /connect-src|img-src|]*\ssrc=|(.*?)<\/script>/s.exec(h)[1]); + assert.equal(Buffer.from(data.audio.a.b64, "base64").compare(wav), 0); + assert.equal(data.hash, r.hash); +}); +test("the page shows the consent note first and skips it only for a returning, consenting listener", () => { + const h = buildKit(manifest, dir).html; + assert.ok(h.indexOf("function consent()") < h.indexOf("function main()")); + assert.ok(h.includes("if (load() && load().consent) start(); else consent();")); + assert.ok(h.includes("sends nothing anywhere")); +}); +test("the content hash changes when a clip changes", () => { + const h1 = buildKit(manifest, dir).hash; writeFileSync(join(dir, "c.wav"), Buffer.concat([wav, Buffer.from([1])])); + assert.notEqual(buildKit(manifest, dir).hash, h1); +}); +test("build refuses a missing file and a manifest escape, naming them", () => { + assert.throws(() => buildKit(mf([clip("zz")]), dir), /file not found: zz\.wav/); + assert.throws(() => buildKit(mf([clip("a", { file: "../x.wav" })]), dir), /relative path/); + assert.throws(() => buildKit(mf([clip("a", { title: "" })]), dir), /title is required/); +}); +test("markup in a title cannot break the page", () => { + const m = mf([clip("a", { title: "" , feel: ""})]); + const h = buildKit(m, dir).html; + assert.equal((h.match(/<\/script>/g) || []).length, 3); +}); +console.log(`${n} tests passed`); diff --git a/tools/aqua-listen/web/index.html b/tools/aqua-listen/web/index.html new file mode 100644 index 0000000..b54a6bb --- /dev/null +++ b/tools/aqua-listen/web/index.html @@ -0,0 +1,16 @@ + + + + + + +/*TITLE*/ + + + +
+ + + + + diff --git a/tools/aqua-listen/web/page.js b/tools/aqua-listen/web/page.js new file mode 100644 index 0000000..e232f3a --- /dev/null +++ b/tools/aqua-listen/web/page.js @@ -0,0 +1,109 @@ +// Page glue. The kit (manifest, content hash, base64 audio) is in #kit-data; logic is AquaListen (logic.cjs, inlined). +(() => { + const L = globalThis.AquaListen, kit = JSON.parse(document.getElementById("kit-data").textContent); + const app = document.getElementById("app"), KEY = `aqua-listen:${kit.manifest.kit.id}:${kit.hash}`; + let state = null, order = null; + + const save = () => { try { localStorage.setItem(KEY, JSON.stringify(state)); } catch (e) { /* private mode: the export still works */ } }; + const load = () => { try { const s = JSON.parse(localStorage.getItem(KEY)); return s && s.seed ? s : null; } catch (e) { return null; } }; + const h = (tag, attrs, ...kids) => { + const e = document.createElement(tag); + for (const [k, v] of Object.entries(attrs || {})) { if (k === "class") e.className = v; else if (k.startsWith("on")) e.addEventListener(k.slice(2), v); else if (v !== false && v != null) e.setAttribute(k, v === true ? "" : v); } + for (const k of kids.flat()) e.append(k); + return e; + }; + const blobUrl = (id) => { + const a = kit.audio[id], bin = atob(a.b64), u = new Uint8Array(bin.length); + for (let i = 0; i < bin.length; i++) u[i] = bin.charCodeAt(i); + return URL.createObjectURL(new Blob([u], { type: a.mime })); + }; + + function consent() { + const box = h("input", { type: "checkbox", id: "consent" }), go = h("button", { disabled: true, onclick: start }, "Start listening"); + box.addEventListener("change", () => { go.disabled = !box.checked; }); + app.replaceChildren( + h("h1", {}, kit.manifest.kit.title), + h("div", { class: "card" }, + h("p", {}, h("strong", {}, "Before you start. ")), + h("p", {}, `You will hear ${kit.manifest.clips.length} short sounds in a random order and say what you think of each. Your answers help decide which sounds get kept, fixed or dropped.`), + h("ul", {}, + h("li", {}, "This page works on its own. It talks to no server, has no account and no tracking, and sends nothing anywhere."), + h("li", {}, "Your answers are saved in this browser only, so you can close the tab and come back. Clearing your browser data erases them."), + h("li", {}, "Nothing leaves your computer until you press Export, which saves two files. Sending those files to the person who gave you this page is your choice."), + h("li", {}, "You can stay anonymous. A name or nickname is optional.")), + h("p", {}, h("label", {}, box, " I understand, and I'm happy to take part.")), + h("p", {}, h("label", {}, "Name or nickname (optional) ", h("input", { type: "text", id: "alias", maxlength: "60" }))), + go)); + } + + function start() { + state = load() || { seed: (crypto.getRandomValues(new Uint32Array(1))[0] || 1), answers: {}, pairs: {}, device: null, notes: "", listener: "" }; + state.consent = true; state.listener = document.getElementById("alias") ? document.getElementById("alias").value.trim() || state.listener : state.listener; + save(); main(); + } + + const answered = (id) => { const a = state.answers[id]; return !!(a && a.verdict && a.landed); }; + function touch(id, patch) { + const a = state.answers[id] = Object.assign({}, state.answers[id], patch); + if (!a.device && state.device) a.device = state.device; + save(); progress(); + const card = document.getElementById("clip-" + id); if (card) card.classList.toggle("done", answered(id)); + } + function radios(name, values, current, onpick, labels) { + return values.map((v) => { const r = h("input", { type: "radio", name, value: String(v) }); if (String(current) === String(v)) r.checked = true; r.addEventListener("change", () => onpick(v)); return h("label", {}, r, " ", labels ? labels[v] : String(v)); }); + } + + function clipCard(o, n) { + const c = kit.manifest.clips.find((x) => x.id === o.id), a = state.answers[o.id] || {}, id = o.id; + const audio = h("audio", { controls: true, preload: "none" }); audio.src = blobUrl(id); + const reason = h("input", { type: "text", maxlength: "300", value: a.reason || "", placeholder: "One line: why?" }); + reason.addEventListener("input", () => touch(id, { reason: reason.value })); + return h("section", { class: "card" + (answered(id) ? " done" : ""), id: "clip-" + id }, + h("h2", {}, o.slot ? `Sound ${o.slot}` : `Sound ${n}`), + h("p", { class: "feel" }, `It should feel: ${c.feel}`), + audio, + h("div", { class: "row" }, h("span", {}, "Keep, fix or drop?"), radios("v-" + id, L.VERDICTS, a.verdict, (v) => touch(id, { verdict: v }))), + h("div", { class: "row" }, h("span", {}, "Did it land? 1 = not at all, 5 = completely"), radios("l-" + id, [1, 2, 3, 4, 5], a.landed, (v) => touch(id, { landed: Number(v) }))), + reason); + } + + function main() { + order = L.planOrder(kit.manifest.clips, state.seed); + const byId = new Map(kit.manifest.clips.map((c) => [c.id, c])); + const prog = h("span", { id: "progress" }); + const dev = h("span", {}, "I'm listening on: ", radios("device", L.DEVICES, state.device, (v) => { state.device = v; save(); })); + const cards = []; let n = 0; + for (let i = 0; i < order.length; i++) { + const o = order[i]; + if (o.slot === "A") { + const b = order[i + 1], key = `${o.id}|${byId.get(o.id).pair}`; + const pick = h("div", { class: "row" }, h("span", {}, "Which do you prefer?"), radios("p-" + key, ["A", "B", "same"], state.pairs[key], (v) => { state.pairs[key] = v; save(); }, { A: "A", B: "B", same: "No difference" })); + n++; cards.push(h("div", { class: "pair" }, h("h3", {}, `Pair ${n}: A and B`), clipCard(o, n), clipCard(b, n), pick)); i++; + } else { n++; cards.push(clipCard(o, n)); } + } + const notes = h("textarea", { rows: "3", placeholder: "Anything else? (optional)" }, state.notes || ""); notes.addEventListener("input", () => { state.notes = notes.value; save(); }); + app.replaceChildren( + h("h1", {}, kit.manifest.kit.title), + kit.manifest.kit.note ? h("p", { class: "hint" }, kit.manifest.kit.note) : "", + h("div", { class: "bar" }, h("div", { class: "row" }, dev, prog)), + ...cards, + h("div", { class: "card" }, h("h2", {}, "Finished?"), notes, + h("p", { class: "hint" }, "Export saves verdict.json and verdict.md to your downloads. Unanswered sounds are exported as blank."), + h("div", { class: "row" }, h("button", { onclick: exportAll }, "Export verdict.json + verdict.md"), h("button", { class: "quiet", onclick: reset }, "Erase my answers")))); + progress(); + } + + function progress() { const e = document.getElementById("progress"); if (e) e.textContent = `${kit.manifest.clips.filter((c) => answered(c.id)).length} of ${kit.manifest.clips.length} answered`; } + function download(name, text, type) { + const a = h("a", { href: URL.createObjectURL(new Blob([text], { type })), download: name }); + document.body.append(a); a.click(); a.remove(); + } + function exportAll() { + const v = L.buildVerdict(kit.manifest, order, state, new Date().toISOString()); + download("verdict.json", JSON.stringify(v, null, 2) + "\n", "application/json"); + download("verdict.md", L.verdictMarkdown(v), "text/markdown"); + } + function reset() { if (confirm("Erase every answer you've given in this browser?")) { try { localStorage.removeItem(KEY); } catch (e) {} location.reload(); } } + + if (load() && load().consent) start(); else consent(); +})(); diff --git a/tools/aqua-listen/web/styles.css b/tools/aqua-listen/web/styles.css new file mode 100644 index 0000000..00652d8 --- /dev/null +++ b/tools/aqua-listen/web/styles.css @@ -0,0 +1,18 @@ +:root { color-scheme: light dark; --fg: #1d1f24; --bg: #f6f5f1; --card: #fff; --line: #cfcdc4; --accent: #1f5f8b; } +@media (prefers-color-scheme: dark) { :root { --fg: #e8e6df; --bg: #17181b; --card: #212328; --line: #3a3d44; --accent: #6db3e0; } } +body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, sans-serif; } +main { max-width: 46rem; margin: 0 auto; padding: 1rem; } +h1 { font-size: 1.4rem; margin: 0.5rem 0; } +.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1rem; margin: 1rem 0; } +.card.done { border-left: 6px solid var(--accent); } +.feel { font-style: italic; } +.row { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; margin: 0.5rem 0; } +.row label { white-space: nowrap; } +input[type=text], textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 0.4rem; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 4px; } +audio { width: 100%; } +button { font: inherit; padding: 0.5rem 1rem; border-radius: 6px; border: 1px solid var(--accent); background: var(--accent); color: #fff; cursor: pointer; } +button.quiet { background: transparent; color: var(--accent); } +button:disabled { opacity: 0.4; cursor: default; } +.bar { position: sticky; top: 0; background: var(--bg); padding: 0.5rem 0; border-bottom: 1px solid var(--line); z-index: 1; } +.pair { border: 2px dashed var(--line); border-radius: 10px; padding: 0 0.75rem; margin: 1rem 0; } +small, .hint { opacity: 0.75; } From 3d01ff4db107aa9f5a9ad132e16321b1aaf2ba96 Mon Sep 17 00:00:00 2001 From: Aqua Date: Sun, 8 Nov 2026 00:57:36 +0000 Subject: [PATCH 04/86] Speech: bare IPA n is an alveolar nasal; word script on the experiment scaffold; WordRender probe PatchScript.GestureDescriptor had no case for n, so it fell to the alveolar approximant (no velum). IpaGestureExperiment.BuildWordScript runs gestures back to back on the same scaffold as BuildCandidateScript (refactored onto one Scaffold). tools/WordRender renders a word offline through native libfaust, driving surface sliders from ControlSplineTimeline because the Faust exporter's summed spline offsets do not sequence gestures. Two tests. Nothing was heard: the render is a near-pure sine with no vowel quality. Co-Authored-By: Claude Sonnet 5.5 --- src/AquaSynth.Core/IpaGestureExperiment.cs | 63 ++++++++++---- src/AquaSynth.Core/PatchScript.cs | 1 + tests/AquaSynth.Dsl.Tests/PatchScriptTests.cs | 41 +++++++++ tools/WordRender/Program.cs | 87 +++++++++++++++++++ tools/WordRender/WordRender.csproj | 12 +++ 5 files changed, 185 insertions(+), 19 deletions(-) create mode 100644 tools/WordRender/Program.cs create mode 100644 tools/WordRender/WordRender.csproj diff --git a/src/AquaSynth.Core/IpaGestureExperiment.cs b/src/AquaSynth.Core/IpaGestureExperiment.cs index 27b94cc..146f1ef 100644 --- a/src/AquaSynth.Core/IpaGestureExperiment.cs +++ b/src/AquaSynth.Core/IpaGestureExperiment.cs @@ -196,27 +196,52 @@ public static class IpaGestureExperiment var duration = Math.Clamp(target.DurationSeconds * variant.DurationScale, 0.03f, 1.5f); var intensity = Math.Clamp(variant.IntensityScale, 0.05f, 2f); - var sustain = Math.Clamp(duration + 0.12f, 0.15f, 2f); - var descriptor = target.Descriptor.Replace(' ', '_'); - var frequency = DescriptorTokens(target.Descriptor).Contains("vowel") ? 150 : 135; - - return $$""" - patch gain=.45 - morphology name=oral length_cm=17 diameters=.55,.75,1.05,1.45,1.25,.8 tongue_index=3 tongue_diameter=1.4 constriction_index=4 constriction_diameter=1 lip_opening=1.2 - morphology name=nasal length_cm=12 diameters=.04,.28,.52,.72 - waveguide_path name=oral_path morphology=oral strategy=thiran order=1 max_delay=4096 loss=.998 - waveguide_path name=nasal_path morphology=nasal strategy=thiran order=1 max_delay=4096 loss=.997 - source_port name=folds path=oral_path kind=glottal position=0 pressure=.66 tension=.54 opening=.42 noise=.04 impedance=.32 flow_scale=.12 - branch_port name=velopharynx from=oral_path from_position=.45 to=nasal_path opening=.01 coupling=1 - constriction_contact name=contact path=oral_path position=.92 opening=.5 resistance=.45 stored_pressure=.12 - radiation_load name=mouth path=oral_path kind=lip position=1 aperture=.8 reflection=-.82 impedance=.28 - probe_timeline name=flow network=voice blocks=12 block_size=64 - vocal_network name=voice paths=oral_path,nasal_path sources=folds contacts=contact branches=velopharynx radiation=mouth probe=flow - phoneme_gesture name={{SafeDslName(target.Id)}} ipa={{target.Ipa}} descriptor={{descriptor}} start=0 dur={{Format(duration)}} intensity={{Format(intensity)}} - vocal network=voice freq={{Format(frequency)}} gain=.7 sustain={{Format(sustain)}} - """; + return Scaffold( + [GestureLine(target, 0, duration, intensity)], + Math.Clamp(duration + 0.12f, 0.15f, 2f), + DescriptorTokens(target.Descriptor).Contains("vowel") ? 150 : 135); } + /// + /// One word on the same scaffold: the targets run back to back, each at its own intensity (a stress mark is a higher + /// intensity on the stressed vowel). An empty descriptor leaves it to the DSL's own IPA table. Pitch stays flat at ; no contour is authored. + /// + public static string BuildWordScript(IReadOnlyList<(IpaGestureExperimentTarget Target, float Intensity)> phones, float frequency = 140, float tailSeconds = 0.12f) + { + if (phones.Count == 0) throw new ArgumentException("a word needs at least one phone", nameof(phones)); + var lines = new List(); + var start = 0f; + foreach (var (target, intensity) in phones) + { + ArgumentException.ThrowIfNullOrWhiteSpace(target.Id); + ArgumentException.ThrowIfNullOrWhiteSpace(target.Ipa); + var duration = Math.Clamp(target.DurationSeconds, 0.03f, 1.5f); + lines.Add(GestureLine(target, start, duration, Math.Clamp(intensity, 0.05f, 2f))); + start += duration; + } + + return Scaffold(lines, Math.Clamp(start + tailSeconds, 0.15f, 4f), frequency); + } + + private static string GestureLine(IpaGestureExperimentTarget target, float start, float duration, float intensity) => + $"phoneme_gesture name={SafeDslName(target.Id)} ipa={target.Ipa} {(target.Descriptor.Length == 0 ? "" : $"descriptor={target.Descriptor.Replace(' ', '_')} ")}start={Format(start)} dur={Format(duration)} intensity={Format(intensity)}"; + + private static string Scaffold(IReadOnlyList gestureLines, float sustain, float frequency) => $$""" + patch gain=.45 + morphology name=oral length_cm=17 diameters=.55,.75,1.05,1.45,1.25,.8 tongue_index=3 tongue_diameter=1.4 constriction_index=4 constriction_diameter=1 lip_opening=1.2 + morphology name=nasal length_cm=12 diameters=.04,.28,.52,.72 + waveguide_path name=oral_path morphology=oral strategy=thiran order=1 max_delay=4096 loss=.998 + waveguide_path name=nasal_path morphology=nasal strategy=thiran order=1 max_delay=4096 loss=.997 + source_port name=folds path=oral_path kind=glottal position=0 pressure=.66 tension=.54 opening=.42 noise=.04 impedance=.32 flow_scale=.12 + branch_port name=velopharynx from=oral_path from_position=.45 to=nasal_path opening=.01 coupling=1 + constriction_contact name=contact path=oral_path position=.92 opening=.5 resistance=.45 stored_pressure=.12 + radiation_load name=mouth path=oral_path kind=lip position=1 aperture=.8 reflection=-.82 impedance=.28 + probe_timeline name=flow network=voice blocks=12 block_size=64 + vocal_network name=voice paths=oral_path,nasal_path sources=folds contacts=contact branches=velopharynx radiation=mouth probe=flow + {{string.Join("\n", gestureLines)}} + vocal network=voice freq={{Format(frequency)}} gain=.7 sustain={{Format(sustain)}} + """; + private static IReadOnlyList SummarizeMetrics(IReadOnlyList metrics) => metrics .Where(metric => metric.Layer.Equals("gesture", StringComparison.OrdinalIgnoreCase)) diff --git a/src/AquaSynth.Core/PatchScript.cs b/src/AquaSynth.Core/PatchScript.cs index 91fafa7..d47cbe5 100644 --- a/src/AquaSynth.Core/PatchScript.cs +++ b/src/AquaSynth.Core/PatchScript.cs @@ -1518,6 +1518,7 @@ public static class PatchScript "p" => "voiceless_bilabial_plosive", "b" => "voiced_bilabial_plosive", "m" => "voiced_bilabial_nasal", + "n" => "voiced_alveolar_nasal", "s" => "voiceless_alveolar_fricative", "z" => "voiced_alveolar_fricative", "ʃ" => "voiceless_postalveolar_fricative", diff --git a/tests/AquaSynth.Dsl.Tests/PatchScriptTests.cs b/tests/AquaSynth.Dsl.Tests/PatchScriptTests.cs index 1d00e05..9ace5ec 100644 --- a/tests/AquaSynth.Dsl.Tests/PatchScriptTests.cs +++ b/tests/AquaSynth.Dsl.Tests/PatchScriptTests.cs @@ -613,6 +613,47 @@ public sealed class PatchScriptTests Assert.True(fricativeControls["/vocal/sources/0/noise"] > nasalControls["/vocal/sources/0/noise"]); } + [Fact] + public void BareNIsAnAlveolarNasalNotTheApproximantFallback() + { + var patch = PatchScript.Parse(""" + morphology name=oral length_cm=17 diameters=.6,.8,1.2,1.6,1.3,.9 tongue_index=3 tongue_diameter=1.4 constriction_index=4 constriction_diameter=1 lip_opening=1.5 + morphology name=nasal length_cm=12 diameters=.05,.35,.6,.8 + waveguide_path name=oral_path morphology=oral loss=.998 + waveguide_path name=nasal_path morphology=nasal loss=.997 + source_port name=folds path=oral_path pressure=.7 tension=.55 opening=.45 noise=.05 impedance=.3 + branch_port name=velopharynx from=oral_path from_position=.45 to=nasal_path opening=.01 coupling=1 + constriction_contact name=contact path=oral_path position=.92 opening=.5 resistance=.4 stored_pressure=.1 + radiation_load name=mouth path=oral_path aperture=.8 reflection=-.82 impedance=.28 + vocal_network name=voice paths=oral_path,nasal_path sources=folds contacts=contact branches=velopharynx radiation=mouth + phoneme_gesture name=en ipa=n start=0 dur=.1 + vocal network=voice freq=140 gain=.2 sustain=.3 + """); + + Assert.Equal("voiced_alveolar_nasal", patch.PhonemeGestures.Single().Descriptor); + Assert.Contains(patch.ControlSplines, spline => spline.Name.StartsWith("en_velum", StringComparison.Ordinal) && spline.SurfacePath == "/vocal/branches/0/opening"); + var catalog = ControlSurfaceCatalog.FromPatch(patch); + Assert.True(catalog.CreateTimeline().ControlValuesAt(.03f)["/vocal/branches/0/opening"] > .5f, "the velum opens for n"); + } + + [Fact] + public void WordScriptRunsGesturesBackToBackAndLeavesDescriptorsToTheDslTable() + { + var script = IpaGestureExperiment.BuildWordScript( + [ + (new IpaGestureExperimentTarget("w_n", "n", "", .1f), 1f), + (new IpaGestureExperimentTarget("w_i", "i", "", .2f), 1.2f), + (new IpaGestureExperimentTarget("w_b", "b", "", .1f), 1f) + ], frequency: 140); + + var patch = PatchScript.Parse(script); + Assert.Equal(["n", "i", "b"], patch.PhonemeGestures.Select(gesture => gesture.Ipa)); + Assert.Equal([0f, .1f, .3f], patch.PhonemeGestures.Select(gesture => gesture.StartSeconds)); + Assert.Equal(["voiced_alveolar_nasal", "voiced_close_front_unrounded_vowel", "voiced_bilabial_plosive"], patch.PhonemeGestures.Select(gesture => gesture.Descriptor)); + Assert.Equal(1.2f, patch.PhonemeGestures[1].Intensity); + Assert.Throws(() => IpaGestureExperiment.BuildWordScript([])); + } + [Fact] public void IpaGestureExperimentWritesFrozenRoundBundle() { diff --git a/tools/WordRender/Program.cs b/tools/WordRender/Program.cs new file mode 100644 index 0000000..807b57a --- /dev/null +++ b/tools/WordRender/Program.cs @@ -0,0 +1,87 @@ +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; +using System.Security.Cryptography; +using System.Text.Json; +using AquaSynth.Dsl; +using AquaSynth.Faust; + +// Offline probe: one word as a run of IPA gestures on the IpaGestureExperiment scaffold, rendered through the native +// libfaust path to a mono 16-bit WAV plus script.aqua, source.dsp and manifest.json. It measures peak, rms and NaN; +// it cannot say how the word sounds. +// usage: WordRender