No description
  • HTML 72.3%
  • C# 24.8%
  • PowerShell 1.6%
  • C++ 0.5%
  • C 0.4%
  • Other 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-05-12 21:55:27 +01:00
docs Initialize synth memory doctrine 2026-05-08 10:40:15 +01:00
src/AquariumSynth.Dsl Tune SFXR high-pass Faust mapping 2026-05-12 21:55:27 +01:00
state Tune SFXR high-pass Faust mapping 2026-05-12 21:55:27 +01:00
tests/AquariumSynth.Dsl.Tests Port reusable Rust synth tooling 2026-05-08 10:34:07 +01:00
.gitignore Scaffold C# Faust DSL bridge 2026-05-08 03:00:53 +01:00
AGENTS.md Initialize synth memory doctrine 2026-05-08 10:40:15 +01:00
AquariumSynthCSharp.slnx Scaffold C# Faust DSL bridge 2026-05-08 03:00:53 +01:00
README.md Port reusable Rust synth tooling 2026-05-08 10:34:07 +01:00

Aquarium Synth CSharp

C# front-end for Aquarium Synth patch scripts. It parses the terse Aquarium DSL into a serializable patch graph, emits Faust .dsp, and can ask an installed Faust compiler to generate backend code such as C#, C++, C, or Rust.

This repo is the C# bridge for Aquarium/Vortice-land. Rust remains the reference lab; this project is the tool that lets the engine script Faust without dragging the Rust crate into the room by the ankle.

Run

dotnet test

Shape

  • PatchScript.Parse(script) lowers terse script into SynthPatch.
  • FaustEmitter.Emit(patch) emits Faust source.
  • FaustCompiler.ValidateAsync(source) compile-checks with Faust when present.
  • FaustCompiler.CompileAsync(source, options) writes generated backend code.
  • BuiltInScripts carries the current Rust-side classic SFXR, 808, FM bell, and wobble bass golf scripts so the migration has executable baggage checks.
  • SfxrParams, PatchScriptScoring, AudioAnalyzer, and Presets carry the reusable Rust-side analysis, scoring, SFXR, and preset tools.

Faust 2.85.5 supports -lang csharp, so the intended hot path is:

var patch = PatchScript.Parse("v w=saw f=55 g=.2 s=.5 d=.2");
var export = FaustEmitter.Emit(patch, new FaustExportOptions("bass"));
await FaustCompiler.CompileAsync(
    export.Source,
    new FaustCompileOptions(FaustTargetLanguage.CSharp, "Generated/Bass.cs"));

Status

The current slice covers the modular graph surface needed by the Rust golfed scripts, SFXR atoms, script scoring, audio comparison, presets, Faust emission, and installed Faust validation. Migration coverage is tracked in docs/migration-checklist.md, because leaving important things behind in the old repo would be a very efficient way to become our own haunted house.