Commit graph

376 commits

Author SHA1 Message Date
Aqua
28e37f5cbb IpaGestureExperiment: use StoreFileName, delete the last SafeFileName copy
Round and candidate ids in the IPA experiment bundle went through a private
sanitiser that mapped distinct ids ("a/b", "a-b") to one file and accepted
".." as a round id. They now go through the shared StoreFileName.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 06:35:25 +00:00
Aqua
81362a7013 Merge remote-tracking branch 'origin/main' into aqua/store-filename-ipa 2026-11-07 06:33:52 +00:00
d6252dd6a5 Merge pull request 'Spike: AOT-compile thruster v5 to a native lib with bounded rpm (Linux; Windows/Unity unverified)' (#13) from aqua/faust-aot-thruster-spike into main 2026-11-07 06:33:47 +00:00
Aqua
dda7a4f26b spike: README reports 74 of 400000 as a single run's figure
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 05:33:49 +00:00
Aqua
a42cc13e5f spike: reword to Nibu's #13 review (no preemption reading, cheap-on-this-host, control counts)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 04:28:50 +00:00
c136e8fea0 Merge pull request 'Scoping: Faust DSP (thruster v5) in a Unity player on Windows and Linux' (#12) from aqua/faust-unity-player-scoping into main 2026-11-07 02:24:21 +00:00
Aqua
e4c6b2d3b3 spike: pin cores, per-overrun wall timestamps, noop control; max block time marked unexplained
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 01:24:21 +00:00
Aqua
489405a377 Merge branch 'aqua/faust-unity-player-scoping' into aqua/faust-aot-thruster-spike 2026-11-07 01:24:21 +00:00
Aqua
9c3ae654ca docs: mark spike max block time unexplained; spike is a bare C loop, not a player
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 01:24:09 +00:00
Aqua
5d724f5f5b spike: drop stray generated header (run.sh generates it into build/)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:21:17 +00:00
Aqua
22af1e935e spike: AOT-compile thruster v5 to a C-ABI native lib with bounded rpm, test, timing script
Linux only; Windows/Unity unverified.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:21:17 +00:00
Aqua
ecf381e714 docs: apply review 824 to Faust Unity scoping
Restate the AOT limit in Recommendation and Unverified list, drop the unsourced
"browser lane", and make the p99.9/max pass lines Aqua's ruling with the
quiet-host caveat for the max line.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:21:10 +00:00
Aqua
0efce042f3 docs: state the AOT patch-set limitation up front
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 23:19:35 +00:00
Aqua
448e3b04b0 docs: scope Faust DSP delivery to a Unity player (Windows/Linux)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 22:17:59 +00:00
Aqua
abfc816804 StoreFileName: close review findings (collisions, case, device stems, length, renderId)
- Pass-through ids may not end in "-<16 hex>", so a rewritten name fed back as an id cannot alias it; hash widened 32 -> 64 bits.
- Ids with uppercase are rewritten (case-insensitive filesystems).
- Windows device stems (CON PRN AUX NUL COM0-9 LPT0-9, any extension) are rewritten.
- Stem capped at 100 chars; longer ids carry the hash.
- Daemon samples/ write now goes through StoreFileName.From(renderId).
- Tests: rewritten-as-id, case-only, device stems, overlong; daemon test uses a compiling patch so the samples/ write is reached when Faust is present.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 20:00:30 +00:00
Aqua
396da106cd One StoreFileName in Core: no id collisions, no '..' escape
The daemon and native-runtime SafeFileName copies sanitised differently:
the daemon mapped a/b, a b, a:b and a-b to the same name (a later patch
overwrote an earlier artifact) and returned ".." unchanged, so a
sessionId or runId of ".." resolved one directory above the store.

Replace both with AquaSynth.Dsl.StoreFileName.From. Ids within
[A-Za-z0-9._-] pass through; any other id is sanitised and suffixed with
the first 8 hex of SHA-256 of the original. Empty, "." and all-dot ids
are refused (ArgumentException).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 18:29:25 +00:00
df21ea7bea Merge pull request 'Earcon Workshop: static earcon family generator with WAV/JSON export (unheard)' (#9) from aqua/earcon-workshop into main 2026-11-06 05:36:47 +00:00
Aqua
33a4ccc0f2 earcon-workshop: review fixes (check count 882, lowpass comment says two poles)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 05:36:46 +00:00
Aqua
0c9708e376 Add Earcon Workshop: static earcon family generator, WAV/zip/JSON pack, node check
Six events x four Dings-derived identities, pure-JS deterministic renderer shared by
page and node, five sliders, offline export. Unheard: signal checks only.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-06 02:07:26 +00:00
fa1bf3fdbc Merge pull request 'aqua-feel: headless feel meter + gate; fix PRC SYNTH1 clipping and thruster low-rpm hiss' (#8) from aqua/aqua-feel into main 2026-11-05 15:44:33 +00:00
Aqua
d4dce3ec0c aqua-feel: keep the held envelope for attack only; activeEnd, crest and the plot use the raw one
The 30 ms release hold inflated activeEnd by up to ~170 ms on percussive items and
shifted crest, rms and noise-to-tone (808-hat activeMs 61 -> 187). Found in the second
review pass; values return to the first run's. Doc cell for PRC attackMs corrected.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 15:44:32 +00:00
Aqua
1bf99e5c3f aqua-feel: review fixes (attack on low tones, disarmed guards, bounded waivers, drift test)
- attack: peak-hold envelope and a 150 ms window; a 261 Hz tone no longer reads its
  first half-cycle as the attack (warm-bell 0.67 ms -> 3.8 ms, declared 4 ms).
- gate: a rule whose id matches no item fails a full run; waivers carry a bound and
  cover only up to it; a missing metric fails its rule; silent items fail once;
  --only runs gate as partial; silent threshold is -70 dBFS.
- DingCatalogTests: lowered Dings fed to the meter must match the catalog.
- README states NTR window/Q dependence, short-buffer loudness padding and the assumed
  Ding command gain; faust-toolchain-boundary notes the v5 manifest predates the mix change.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 15:42:13 +00:00
Aqua
eb35ca545d Add aqua-feel: headless feel meter and gate; fix PRC SYNTH1 clipping and thruster low-rpm hiss
tools/aqua-feel renders every playground patch (thruster at four rpm) and every Ding
event on every instrument offline through faustwasm, measures onset latency, attack,
crest, true peak and clipping, BS.1770 loudness, centroid/flux over time, noise-to-tone
ratio (flat and A-weighted) and a low-motion flag, writes report.json plus a static
gallery, and gates against thresholds.json (waivers must cite a follow-up and go stale).
Nothing is heard; metrics are evidence, not verdicts.

Uses it: PRC SYNTH1 calibrated peaked at 2.10 (18,633 overs); shipped patch gain 1.4 to
0.45, peak 0.67. Thruster low-rpm A-weighted noise-to-tone 20.7/23.0 dB at rpm 300/600
down to 13.1/5.0 by cutting the idle rasp and rattle floors and opening the rumble
low-pass at low load. Trial copy mirrored; its README notes the narrower sweep.

AquaLower gains --dings to lower DingCatalog instruments and events.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 15:31:35 +00:00
d8c625c532 Merge pull request 'Docs: soundscape grammar for the Ratatoskr generative symphony (draft)' (#4) from aqua/docs/soundscape-grammar into main 2026-11-05 11:54:51 +00:00
810b44db9e Merge pull request 'Faust on Linux: FaustRender probe, toolchain notes, thruster v5 manifest' (#5) from aqua/faust-linux-render into main 2026-11-05 11:54:44 +00:00
5f85effc07 Merge pull request 'Listening trial: blinded A/B thruster noise sweep (static page)' (#7) from aqua/listening-trial into main 2026-11-05 11:54:39 +00:00
c1d2a9468e Merge pull request 'Static in-browser playground (faustwasm) for AquaSynth patches' (#6) from aqua/playground into main 2026-11-05 11:54:38 +00:00
4b965f39b5 Merge pull request 'Add thruster Faust patch with an rpm control' (#3) from aqua/thruster-patch into main 2026-11-05 11:54:38 +00:00
b4d203ddcb Merge pull request 'Faust SetControls: remove per-call allocation' (#2) from aqua/setcontrols-no-alloc into main 2026-11-05 11:54:37 +00:00
Aqua
46da9975df Playground README: state plainly that it is unheard and unrun in a browser
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 11:46:43 +00:00
Aqua
d348a19ddd Docs: soundscape grammar names the Mimir harvest follow-up it could not see
The follow-up is in force in Eureka's mind and names Mimir's bioacoustic
research; the draft's earlier grep missed it. Section 4 stays recalled, not
re-read, and the harvest stays owed.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-05 11:46:38 +00:00
Aqua
45f62277f0 Rename logic.mjs to logic.js so static hosts serve a JavaScript MIME type
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 21:34:34 +00:00
Aqua
7593917e32 Add blinded A/B listening trial page for the thruster noise sweep
Static page, trial patch (thruster + noise control), shared logic, dependency-free analyzer, node tests.
Never run in a browser; nothing has been heard.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 21:34:18 +00:00
Aqua
6080f9b8f1 Playground: rename ui.mjs to ui.js so static hosts serve a JavaScript MIME type
The minds host sends .mjs as application/octet-stream, which browsers refuse for module imports.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 13:39:11 +00:00
Aqua
39843ae95c Add static in-browser playground for AquaSynth patches
tools/AquaLower lowers .aqua to Faust (FaustEmitter.EmitScript); tools/aqua-playground compiles
the lowered Faust to wasm with @grame/faustwasm in the page and plays it through an AudioWorklet,
with sliders from the DSP's UI and the Faust source shown. Thruster plus 41 .aqua patches.
Headless node test compiles and renders every patch (non-silent, finite).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-04 13:38:49 +00:00
Aqua
b7a5142555 Note sweep render duration explains the 10/31 hash difference
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 09:56:06 +00:00
Aqua
ceaa597420 Add FaustRender probe, Linux toolchain notes and thruster v5 manifest
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-03 09:37:02 +00:00
Aqua
ab9bcdc6b7 Docs: soundscape grammar for the Ratatoskr generative symphony (draft)
One typed activity frame drives both orbit visuals and voices. Grammar only;
no notes, nothing rendered or listened to. Marks the two inputs that could not
be read (creature-projection-v2, Mimir harvest).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-02 12:30:12 +00:00
Aqua
c6561da8d4 thruster: v5 gain term 0.9-0.5*load plus 0.425 output trim
Peak under 0.4 at rpm 600, rpm 4800 and the 600-4800 sweep.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 20:54:51 +00:00
Aqua
882b7203f5 thruster: lower hull-mode Q and soft-limit the rattle so high rpm is louder than low rpm
Hull modes Q 40/35/30/25 -> 20/18/16/14; tanh on the rattle alone; drive floor 0.1 -> 0.35.
Linux render, 48 kHz, 512-frame blocks: rpm 4800 steady RMS 0.1252 > rpm 600 0.0850; peaks 0.216/0.354/0.325.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 20:48:55 +00:00
Aqua
e567b44c24 thruster: drive falls with load so tanh no longer pins the peak at high rpm
Drive 2.2 -> max(0.1, 0.9 - load); rasp load weight 0.6 -> 1.5.
rpm=4800 peak 0.500 -> 0.358.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 20:45:51 +00:00
Aqua
36ff76f03a Add thruster Faust patch with an rpm control
Sustained heavy thruster: low rotor rumble, blade-chopped noise rasp,
high-Q hull rattle modes, tanh clip. Compiled as Faust source through
CompileSource; not a .aqua script and not indexed in library.yaml.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 20:42:06 +00:00
Aqua
aa45571b3a Faust SetControls: write control zones without allocating
Marshal.Copy([value], ...) allocated a float[1] per control and the
IReadOnlyDictionary foreach boxed an enumerator per call. Write the float
bits straight to the zone and use Dictionary's struct enumerator when the
caller passes one. 10000-block smoke on a 2-control patch: 120 B/block -> 0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 20:36:47 +00:00
3b43b7bd72 Merge pull request 'Faust loader: platform-aware library lookup and AQUASYNTH_FAUST_LIBRARY override' (#1) from faust-loader-platform-aware into main 2026-10-31 09:40:59 +00:00
Aqua
53f1f1b03e Faust loader: platform-aware library lookup and explicit path override
Find libfaust.so on Linux, libfaust.dylib on macOS, libfaust.dll/faust.dll on
Windows; join PATH with Path.PathSeparator; accept FaustLibraryPath or
AQUASYNTH_FAUST_LIBRARY as an explicit library file. Platform default homes
replace the unconditional C:\Program Files\Faust.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 09:14:08 +00:00
Aqua
b77c9e5b66 Fix file:line cites for AquaDaemonClient and DingAudioPlayer
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:14:04 +00:00
Aqua
27a9043dff Research: Dings playback path and Ogg export sketch
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-31 06:13:47 +00:00
Meta Vens
8a65f5876a AquaSynth advertisement: drop Eve surface entries; Eve is deprecated, Thing 2 is the successor
Per thing2:ruling:eve-dashboards-quarantined. Removes cultMeshSurfaceKeys, the eve witness family and the eve surface schema from the exporter and fixture; the contract names the quarantine.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 20:19:44 +02:00
Meta Vens
c1399425eb Pin CultLib 2.0.0 for builds
Directory.Build.props names CultLibRoot (CULTLIB_ROOT, else the sibling checkout) and pins CultLibRevision to cultlib-unity-v2.0.0 (42dce361). Directory.Build.targets fails the build unless that checkout is at the pin and clean, as Aetheria's guard does. Project references use CultLibRoot.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-22 19:46:37 +02:00
Meta Vens
aed65255cc Follow CultLib Cut 3: opening hydrates, PullOnOpen is gone
CultLib's CultCacheMessagePack.Create and OpenAsync now always read the store,
and CultCacheOpenOptions.PullOnOpen no longer exists.

- CultCachePatchDocumentStore.WriteDefaultAsync and
  AquaSynthDaemonService.WriteReceiptAsync write single-document files. They
  open (which hydrates), remove every record other than the one they write,
  upsert, and flush; the flush replaces the file atomically. Before this,
  Create never pulled, so their PullOnOpen = false was already a no-op.
- IpaTrialResults and SpeechDistributedTraining passed File.Exists-style
  PullOnOpen values; hydrating a missing store is empty, so the option goes.
- AquaSynthDaemonServiceTests drops PullOnOpen = true.

Globals: nothing in CultLib invents a [CultGlobal] record any more. AquaSynth
never relied on that: its three global types are positional records with no
parameterless constructor, which the old invention skipped, and every one is
written explicitly and read back by explicit key or GetAll.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-13 17:59:48 +02:00