Commit graph AquaSynth/src
Author SHA1 Message Date
Aqua
1ed0404e1b Glottal pulse (saw | rosenberg) and source-noise high-pass on source_port; test states the rendered-level difference instead of denying it
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 22:54:58 +00:00
Aqua
8b9169e8c2 voice-source-1: HNR tool, ami phrase, source fields pulse and noise_hp, WordRender --source; calibration noted before the kit renders
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 22:54:58 +00:00
ca6af1d678 Tract: coarticulation fixes for the tract-weak-spots-1 listening verdict (#52)
Merged as head maintainer after Soul passes 2 and 3 (aqua-body:verdict:cut-tract-coarticulation-pr52.s2, ...fix2.s3). Unheard: every clip is a measurement, not a listening.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 22:54:17 +00:00
92d4282546 Tract stops /t/ /k/ /d/ /l/, burst at the closure site, listen kits with clip images (#48) 2026-11-13 07:14:34 +00:00
6e92e47115 Sample-rate pass-through, #18/#19 and #47 Lows (#49)
Shipped by Aqua (Self, steward) after Soul PASS-WITH-FINDINGS (cut-samplerate-passthrough.s1 and siblings).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 18:42:44 +00:00
af0e44f9b6 Tract: burst gain no longer leaks past its plosive; 14-clip listening kit (#47)
Shipped by Aqua (Self) after Soul PASS (aqua-body:follow_up:soul-pr47-verdict-20261112; two Low findings). UNHEARD.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 16:49:16 +00:00
Aqua
e3d1a7eeba Dings: one play validation gate (DingCatalog.PlayRejection), Host enforces; bridge check deprecated (migration step 4)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 10:46:34 +00:00
Aqua
0f0de0dd8e Dings: DingCatalog.Identity owns PatchId/FaustName/revision derivation (step 1); record owner as ruled, migration plan
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 10:33:48 +00:00
e9de895c39 Lowering: patch repeat restarts pitch and arpeggio, not the envelope; README store-kind rollback note (#37) 2026-11-11 09:27:29 +00:00
5c49f2ae86 Pin CultLib abd1a92e; [CultRole] audit; ElementId on every list element type (#35) 2026-11-11 08:31:22 +00:00
0b73d5d608 sfxr explosion + abstract golf: patch repeat no longer cuts the envelope; waivers removed (#36) 2026-11-11 07:30:59 +00:00
5d4c367b94 Merge pull request 'Articulatory tract: Story vowels, nasal branch, stress cue, plosive burst, independent Burg check (unheard)' (#19) from aqua/tract-articulatory into main 2026-11-10 18:13:33 +00:00
6906ae590e Merge pull request 'Vowel gestures calibrated by measurement; exporter sample rate from callers' (#18) from aqua/tract-voice into main 2026-11-10 18:13:29 +00:00
9d721c50a6 Merge pull request 'Speech: n descriptor, word script, WordRender; first /ˈnibu/ render (a hum, unheard)' (#17) from aqua/nibu-first-render into main 2026-11-10 18:12:40 +00:00
Aqua
b14376906d Daemon: POSIX artifact URIs, and tests name store files through StoreFileName
ToArtifactUri prefixed a bare "file:///" so /tmp/x became file:////tmp/x, which Uri reads as a UNC host:
the render receipts' Float32Uri/WavUri pointed at nothing on Linux. Separately, session and live-session
receipts are written as StoreFileName.From(id).cc and the compile key is uppercase hex, so the name gains a
hash suffix; four native-Faust daemon tests still looked for the raw id. Both only show where native Faust
compiles (they return early when it does not), so they were red on every Linux host with Faust.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-10 18:12:21 +00:00
Aqua
58ab238ab6 Correct overstated claims about the wall term and the junction fix (comments and sources doc): under 1 dB holds for f0 only (200/300 Hz harmonics +1.5 dB on one open vowel), the closed-tract bar is a second-order roll-off about 25 dB down above 300 Hz, back-vowel F1 error restated from Burg LPC
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 23:28:21 +00:00
Aqua
a84425128a Nasal path carries its damping (loss .997 to .975 per cell, about 380 Hz bandwidth): murmur /m/ -4.2 to -11.8 dB, /n/ -2.2 to -9.6 dB re the flanking vowels
The junction fix (previous commit) let the nose take its proper share and the murmur rose to within 2-4 dB of the vowels; the nasal cavity is the most heavily damped part of the tract. Nasal N1 and first-zero tests still pass (N1 /m/ 320 Hz, /n/ 370 Hz).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 14:30:02 +00:00
Aqua
bec55d0937 Nasal junction scatters on its own interface (cells 10 and 11, not 11 and 12): back-vowel F1 12-26% high becomes 1.5-9% high; five skipped tests run
The velopharyngeal junction summed the areas of cells cell and cell+1 and used their coefficients for R(cell) and L(cell-1), which sit on the interface between cell-1 and cell, so the pharynx carried the next step's reflection with the wrong sign (/o/ at cells 10-12: .52 .33 .52). Isolated by the numpy copy of the ladder against the lip wave of the rendered ladder under an impulse. F1 render against tube chain, uh 580/549, ah 690/650, aw 550/516, o 520/477, oo_short 500/478; they pass the 10 percent band and the Skip is gone.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 13:40:42 +00:00
Aqua
fd11f92cae Tract wall radiation: the first-cell pressure, band-limited to 90-300 Hz, radiates through the wall; a voiced closure carries a voice bar
A word-initial /b/ closure was 0.0000 (below 16 bits): the shut mouth passes nothing and no other path existed. Wall radiation reads R0+L0 of each glottal path (the ladder returns it beside the lip waves) and adds a gain-0.7 term: /b/ closure -30.0 dB re the following vowel, /p/ -40.9 dB, a vowel's f0 harmonics move under 1 dB.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 13:27:49 +00:00
Aqua
b7c1dc0a41 Stress amplitude cue 1.26 to 1.30 (secondary 1.14): rendered primary stress +1.7 to +2.0 dB mean over five vowels, /i/ in /nibu/ +0.99 to +1.64 dB
The f0 rise alone moves the level -1.3 to +1.8 dB by vowel through the harmonic/F1 interaction, so the amplitude factor is held to the rendered result. Duration and f0 cues unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 12:58:59 +00:00
Aqua
4eab1979bd Nasal stops hold their oral closure to 0.8 of the gesture: /n/ murmur -3.8 to -8.8 dB re the flanking vowels (/m/ -12.8)
The alveolar closure began to open at half the gesture while the velum and the contact held to 0.8, so the oral tract radiated over the last third of the murmur. verify_renders.py now measures the murmur on steady parts against the mean flanking-vowel power; the render test holds both nasals 8 to 16 dB under the vowels.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 12:50:59 +00:00
Aqua
563a6a8e1f Stress carries duration, amplitude and f0 (source pitch_ratio surface); plosive release burst from contact release_flow; vowels open the contact
Primary stress: duration 220/160, source flow x1.26 (+2 dB), f0 x1.06 (Sluijter & van Heuven 1996); secondary halfway (design value).
The exporter's contact term adds white noise shaped by stored pressure and 4*o*(1-o) of the opening, gain from release_flow.
Unheard.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 19:25:02 +00:00
Aqua
671ff4ca01 Nasal side branch: the 19-section Dang & Honda nasal tract, a velopharyngeal port area (opening * 0.8 cm^2) instead of a 0.4 cm diameter, vowel_set consonants placed in cm (/m/ at the lips, /n/ on the alveolar ridge cell), velum shut = opening 0
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 18:58:59 +00:00
Aqua
b2d0363f2c Ladder lip termination is the area-derived one-pole open-end reflectance (g = 1); vowel tests held to 6% front / 10% back against the tube chain
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 18:36:55 +00:00
Aqua
67c1290589 Vowels are Story 2008 measured area functions blended in log-area, not Gaussian tongue deformations from a grid-searched table
StoryVowelAreas owns the 11x44 table (CSV is the cited copy, a test compares every cell) and the IPA/descriptor -> vowel id lookup. vowel_set attaches the shapes to a morphology and registers /vocal/areas/<i>/area/vowel_<id> weights; DeformedAreaExpression (still the one area owner) blends them as exp(sum w ln A / max(1e-3, sum w)), the geometric mean when weights vanish, and lip_opening caps the lip cells. Vowel gestures raise their vowel to 1 and the rest to 0; VowelShapes and its nearest-anchor logic are gone. The scaffold runs 17.52 cm at 350 m/s (24 cells); ɪ ʊ e ɛ ʌ ɔ o join the IPA table. Scripts without vowel_set emit byte-identical DSP.

Unheard. Against the tube chain only ɪ and ɛ are within 6 percent at the scaffold lip reflection (-.82); the other nine vowels' tests are skipped, with the measurements in docs/research (radiation-model question open).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 17:37:14 +00:00
Aqua
fd9b38416c ProbeTimelineReport takes the sample rate instead of hardcoding 48000: block times and delay_samples follow the rate the caller renders at
IpaTrialOrchestrator passes its options.SampleRate through IpaGestureExperiment.WriteRound; the default stays 48000. Test: a speed step lands in a different block at 44.1 kHz than at 48 kHz and delay_samples scale with the rate (re-hardcoding 48000 fails it).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 17:35:18 +00:00
Aqua
11bcbd0621 Weksa phones line reader: strict typed parse, unsupported phones reported, stress moves only intensity
The DSL's IPA table becomes PatchScript.TryIpaDescriptor so the reader asks the one table instead of keeping its own.
Fixture is Weksa PR 16 at a7bc2478, byte for byte.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:43:20 +00:00
Aqua
3fe877cbf4 Radiation highpass is a fixed 200 Hz, not 40 + 500 * aperture
The corner sat at 540 Hz for a vowel, above /u/'s F1, and the envelope read that F1 at 450 Hz. The ladder's lip cell already carries the lip area; aperture stays the gain consonant closures use. Tests: u F1 250-350 and F2 near 876; i F1 band widened to 20% (the harmonic-line reading of i moves 230-260 Hz with the corner).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:29:17 +00:00
Aqua
0242f385e5 Vowel gestures keep the radiating aperture open: the lip cell already carries the lip area
The gesture also scaled the aperture (an output gain and highpass corner) by lip cm / 2.2, so /u/ (lip .05 cm) rendered 29 dB under /i/. A vowel now holds aperture at 1; consonant closures still use it. Test: /u/ rms within -10..+3 dB of /i/, F2 under 1000 Hz.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 04:04:03 +00:00
Aqua
f633804bd3 Vowel gestures: tract shapes found by grid search over the exported ladder
EmitVowelGesture now holds tongue index, tongue and lip diameters (cm) from anchors measured by impulse response toward textbook F1/F2 (i 271/2313, u 292/876, a 703/1084, plus ae, e, o, schwa), with the constriction opened. The old targets put a at 310/2130 and i at 620/1620 through the same ladder. Tests render the authored gestures end to end and read LPC envelope peaks.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 03:41:20 +00:00
Aqua
ec73200093 Callers of FaustEmitter that render at a known rate pass it: the ladder's cell length follows the sample rate
The vocal ladder has one cell per sample, so exporting at the 48 kHz default and rendering at 44.1 kHz (daemon, IPA trial, song worker, graph renderer) shifted every formant down 8%. Speech-loss surface and AquaLower still take the default; the wasm compile path has no rate.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 03:41:20 +00:00
Aqua
840d95a092 vocal_network: Kelly-Lochbaum ladder replaces the per-path delay*loss primitive
Each waveguide path is a one-sample-per-cell ladder (N = round(L*SampleRate/c)) written as a Faust letrec; the glottal source
feeds cell 0 and the lip wave is the radiated signal. A branch port joining two paths of the network is a three-port velum
junction (Pink Trombone's), opening*coupling*0.4 cm wide. Lip reflection is the radiation load's live reflection.
The Gaussian area deformation of TerminalAreaExpression and SegmentAreaExpression is one helper, DeformedAreaExpression,
which the ladder cells also use. PrimitiveAreaExpression and PrimitiveDelayExpression are deleted. FaustExportOptions.SampleRate
(default 48000) is passed by the native runtime. Scaffold: contact opening 1, nostril radiation load.
Tests: F1/F2 of i, schwa, a, vowel ordering, stability with velum open, nasal exit with the mouth shut; the aliasing test
now measures the whole non-harmonic grid since the tract reshapes the harmonics.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 03:21:59 +00:00
Aqua
c7c4086e45 Glottal source: band-limited saw through a one-pole lowpass with SourcePort.Tilt
Replaces the sine os.osc in the primitive vocal source. Tilt (default .5, DSL tilt=, surface /vocal/sources/i/tilt): 0 brightest, 1 steepest rolloff; cutoff 200*2^((1-tilt)*5) Hz. Opening and tension amplitude factors kept. ProbeTimelineReport models only the source's flow level (no oscillator), so tilt does not enter it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 02:23:57 +00:00
Aqua
820c0c2d74 Exporter and probe report take the timeline's merged spline per surface; WordRender uses exporter splines
ControlSplineTimeline.SurfaceSplines is the one owner of which spline decides a surface (>=2 enabled splines merge into one bezier curve over the union of points; one spline unchanged). FaustExport and ProbeTimelineReport no longer sum per-spline offsets; WordRender drops its no-spline emit and timeline-driven sliders.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 02:16:52 +00:00
Aqua
3d01ff4db1 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 <noreply@anthropic.com>
2026-11-08 00:57:36 +00:00
Aqua
5a77dc8e83 AquaLower names lowered .dsp files through StoreFileName; pin Windows forms; note limits
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 10:38:28 +00:00
Aqua
30b926c776 Merge branch 'aqua/safe-filename-collide-dotdot' into aqua/store-filename-ipa
# Conflicts:
#	tests/AquaSynth.Dsl.Tests/StoreFileNameTests.cs
2026-11-07 10:33:56 +00:00
Aqua
80ebf39033 StoreFileName.Combine: batch ids from the command line cannot leave the artifact root
IpaTrialWorker song-score took --batch-id raw into Path.Combine; the orchestrator
sites share the new Combine. Tests cover traversal and absolute batch ids and the
underscore on device stems (nul.x, LPT1.x); drop the double From on the emitter name.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 10:33:47 +00:00
Aqua
b906d98ed5 Merge remote-tracking branch 'origin/aqua/safe-filename-collide-dotdot' into aqua/store-filename-ipa 2026-11-07 09:54:00 +00:00
Aqua
afd0cc9ec3 StoreFileName: device stems no longer survive as the stem; IpaTrialWorker paths use it
"nul.x" was rewritten to "nul.x-<hash>", whose stem is still NUL on Windows;
rewritten device names now get a leading underscore, and the test asserts the
stem is not reserved. IpaTrialWorker candidate directories go through
StoreFileName.From; its remaining SafeName only slugs uuid-suffixed record ids.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 09:54:00 +00:00
Aqua
4865830d82 IpaGestureExperiment: make the target/variant candidate id injective
("a","b-c") and ("a-b","c") both joined to "a-b-c" before the map and wrote the
same files. Each part goes through StoreFileName.From first and the pair is
joined with '/', which no mapped part can contain.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 09:54:00 +00:00
Aqua
4a3921c1a9 Merge remote-tracking branch 'origin/aqua/safe-filename-collide-dotdot' into aqua/store-filename-ipa 2026-11-07 09:29:55 +00:00
Aqua
de754b5b8c StoreFileName: route IpaTrialOrchestrator and FaustCompiler through it; daemon test uses ".."
Nibu's review at abfc816: the daemon test passed against the old sanitizer
because "../../escape" never escaped there; the bare ".." did. IpaTrialOrchestrator
(SafeName, raw BatchId in Path.Combine) and FaustCompiler.SafeArtifactName were
second owners of the same decision.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 09:29:43 +00:00
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
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
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
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
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