Initialize synth memory doctrine
This commit is contained in:
parent
3246672bbe
commit
4cd6b5952d
6 changed files with 265 additions and 0 deletions
3
state/evidence.jsonl
Normal file
3
state/evidence.jsonl
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
{"kind":"migration","lesson":"The C# repo must own reusable authoring, analysis, preset, scoring, and Faust-generation behavior; only the Rust renderer/runtime and experimental compiler branch are intentionally left behind.","source":"user direction and migration pass through commit 3246672"}
|
||||
{"kind":"realtime","lesson":"Runtime-facing audio code must avoid unbounded operations: allocation, locks, I/O, console output, OS calls, and context switches do not belong in audio callbacks.","source":"PortAudio callback documentation"}
|
||||
{"kind":"dsp_graph","lesson":"Treat patch scripts as deterministic dataflow graphs with explicit rate and block semantics; terse syntax is acceptable only when lowering remains inspectable.","source":"Pure Data block/subpatch model and Faust block-diagram model"}
|
||||
39
state/map.yaml
Normal file
39
state/map.yaml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
project: AquariumSynthCSharp
|
||||
mission: >
|
||||
C# authoring, analysis, and Faust generation layer for Aquarium synth patches,
|
||||
targeting the Aquarium/Vortice engine path without dragging the Rust renderer
|
||||
into runtime dependencies.
|
||||
surfaces:
|
||||
instructions: AGENTS.md
|
||||
doctrine: docs/audio-doctrine.md
|
||||
memory: state/memory.json
|
||||
scratch: state/scratch.md
|
||||
evidence: state/evidence.jsonl
|
||||
solution: AquariumSynthCSharp.slnx
|
||||
library: src/AquariumSynth.Dsl
|
||||
tests: tests/AquariumSynth.Dsl.Tests
|
||||
modules:
|
||||
model: src/AquariumSynth.Dsl/Model.cs
|
||||
parser: src/AquariumSynth.Dsl/PatchScript.cs
|
||||
faust: src/AquariumSynth.Dsl/FaustExport.cs
|
||||
sfxr: src/AquariumSynth.Dsl/SfxrParams.cs
|
||||
analysis: src/AquariumSynth.Dsl/AudioAnalysis.cs
|
||||
scoring: src/AquariumSynth.Dsl/ScriptMetrics.cs
|
||||
presets: src/AquariumSynth.Dsl/Presets.cs
|
||||
built_in_scripts: src/AquariumSynth.Dsl/BuiltInScripts.cs
|
||||
boundaries:
|
||||
leave_in_rust:
|
||||
- sample renderer
|
||||
- PatchPlayer runtime
|
||||
- realtime AudioUnit bridge
|
||||
- experimental Rust DSL compiler branch
|
||||
own_in_csharp:
|
||||
- patch graph contracts
|
||||
- patch script surface
|
||||
- SFXR parameter mapping and atoms
|
||||
- analysis and comparison tools
|
||||
- script scoring
|
||||
- Faust source and target-code generation
|
||||
checks:
|
||||
default: dotnet test
|
||||
faust_validation: automatic in tests when Faust is installed
|
||||
36
state/memory.json
Normal file
36
state/memory.json
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"project": "AquariumSynthCSharp",
|
||||
"mission": "Own Aquarium Synth patch authoring, analysis, preset mapping, and Faust generation in C# for the Aquarium/Vortice engine path.",
|
||||
"current_boundary": {
|
||||
"leave_in_rust": [
|
||||
"Rust sample renderer",
|
||||
"PatchPlayer runtime",
|
||||
"realtime AudioUnit bridge",
|
||||
"experimental Rust DSL compiler branch"
|
||||
],
|
||||
"own_here": [
|
||||
"patch graph model",
|
||||
"patch script parser",
|
||||
"SFXR atoms and parameter mapping",
|
||||
"analysis/comparison metrics",
|
||||
"script scoring",
|
||||
"preset catalogs",
|
||||
"Faust emission and compiler wrapper"
|
||||
]
|
||||
},
|
||||
"taste": [
|
||||
"Patch scripts should be terse but lower into explicit, inspectable graph data.",
|
||||
"Compiler abstractions should remove repeated musical structure, not hide DSP behavior.",
|
||||
"Generated Faust should be boring enough to diff and debug.",
|
||||
"Realtime-facing work must assume allocation, locks, file I/O, console I/O, and OS calls are hostile."
|
||||
],
|
||||
"doctrine_refs": [
|
||||
"docs/audio-doctrine.md",
|
||||
"docs/migration-checklist.md"
|
||||
],
|
||||
"last_verified": {
|
||||
"command": "dotnet test",
|
||||
"result": "13 passed",
|
||||
"commit": "3246672"
|
||||
}
|
||||
}
|
||||
12
state/scratch.md
Normal file
12
state/scratch.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# Scratch
|
||||
|
||||
Current standing order: keep migrating reusable synth tooling into C# while
|
||||
leaving only the Rust renderer/runtime and experimental compiler branch behind.
|
||||
|
||||
The next likely slice is serialization and host integration:
|
||||
|
||||
- Define JSON contracts for `SynthPatch` and related records.
|
||||
- Add a CLI for `.aqs` script -> `.dsp` / generated C#.
|
||||
- Add compile cache keyed by script/options/source hash.
|
||||
- Keep doctrine aligned with realtime constraints before adding runtime-facing
|
||||
APIs.
|
||||
Loading…
Reference in a new issue