{"id":49623130,"url":"https://github.com/cucuwritescode/rt-fdn","last_synced_at":"2026-05-05T04:17:41.823Z","repository":{"id":351554646,"uuid":"1187318643","full_name":"cucuwritescode/rt-fdn","owner":"cucuwritescode","description":"Real-time deployment of differentiable audio graphs via FAUST","archived":false,"fork":false,"pushed_at":"2026-04-24T19:05:49.000Z","size":40,"stargazers_count":3,"open_issues_count":8,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-24T21:14:50.730Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cucuwritescode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-20T15:34:05.000Z","updated_at":"2026-04-24T19:05:53.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/cucuwritescode/rt-fdn","commit_stats":null,"previous_names":["cucuwritescode/flamo-rt","cucuwritescode/flamo_rt","cucuwritescode/rt-fdn"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/cucuwritescode/rt-fdn","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cucuwritescode%2Frt-fdn","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cucuwritescode%2Frt-fdn/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cucuwritescode%2Frt-fdn/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cucuwritescode%2Frt-fdn/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cucuwritescode","download_url":"https://codeload.github.com/cucuwritescode/rt-fdn/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cucuwritescode%2Frt-fdn/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32634909,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-05-05T04:17:40.843Z","updated_at":"2026-05-05T04:17:41.817Z","avatar_url":"https://github.com/cucuwritescode.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# rt-fdn\n\n**real-time deployment of differentiable audio graphs via FAUST**\n\n[![Python 3.10+](https://img.shields.io/badge/python-3.10%2B-blue.svg)](https://www.python.org/downloads/)\n[![License: MIT](https://img.shields.io/badge/licence-MIT-green.svg)](LICENSE)\n[![Tests](https://img.shields.io/badge/tests-120%20passing-brightgreen.svg)](#testing)\n[![Status](https://img.shields.io/badge/status-alpha-orange.svg)](FLAMO_RT_SPEC.md)\n\n*bridge the gap between differentiable audio research and deployable real-time plugins*\n\n\u003c/div\u003e\n\n---\n\n## the problem\n\nresearchers design and optimise FDNs using [FLAMO](https://github.com/gdalsanto/flamo)'s differentiable audio framework, but deploying these as real-time plugins requires manual reimplementation. this is error-prone and creates a gap between research prototypes and usable tools.\n\n```\nbefore:   FLAMO model (PyTorch)  →  ???  →  real-time plugin\n                                     ↑\n                                manual rewrite\n\nafter:    FLAMO model (PyTorch)  →  flamo_rt  →  FAUST  →  plugin\n```\n\n## how it works\n\n```\n┌──────────────┐       ┌──────────────┐       ┌──────────────┐\n│    FLAMO     │       │     JSON     │       │    FAUST     │\n│    model     │  ───▶ │    config    │  ───▶ │    code      │\n│  (PyTorch)   │       │              │       │   (.dsp)     │\n└──────────────┘       └──────────────┘       └──────────────┘\n         flamo_to_json()        json_to_faust()\n         ╰───────────── flamo_to_faust() ──────────────╯\n```\n\nthe pipeline traverses a FLAMO model graph, extracts all parameters (delays, gains, matrices, filters), serialises them to a JSON intermediate representation, and generates valid FAUST DSP code. the JSON stage decouples extraction from codegen and enables future backends.\n\n## installation\n\n```bash\npip install -e .\n```\n\nfor full FLAMO model support (requires PyTorch):\n\n```bash\npip install -e \".[full]\"\n```\n\n## quick start\n\n```python\nfrom flamo_rt import flamo_to_faust\n\n#given a trained FLAMO model and sample rate\nfaust_code = flamo_to_faust(model, fs=48000, name=\"MyReverb\")\n\n#write to file\nwith open(\"reverb.dsp\", \"w\") as f:\n    f.write(faust_code)\n```\n\nor use the two-step pipeline for inspection:\n\n```python\nfrom flamo_rt import flamo_to_json, json_to_faust\n\n#step 1: extract parameters to json-serialisable dict\nconfig = flamo_to_json(model, fs=48000, name=\"MyReverb\")\n\n#inspect, modify, serialise...\nimport json\nprint(json.dumps(config, indent=2))\n\n#step 2: generate faust code\nfaust_code = json_to_faust(config)\n```\n\n## supported modules\n\n| FLAMO module | FAUST output | description |\n|---|---|---|\n| `parallelDelay` | `@(n)` | integer sample delays |\n| `Gain` / `Matrix` | sum-of-products function | mixing matrices (hoisted) |\n| `parallelGain` | `*(g)` | per-channel diagonal gains |\n| `parallelSOSFilter` | `fi.tf2(...)` | cascaded biquad filters |\n| `Series` | `:` | sequential composition |\n| `Parallel` | `,` / `:\u003e` | side-by-side or summing |\n| `Recursion` | `~` | feedback loops (FDN core) |\n| `Biquad` / `SVF` | `fi.tf2` / `fi.svf.*` | single-channel filters |\n| `Shell` | *(unwrapped)* | FFT wrapper skipped |\n\n## testing\n\n```bash\n#unit tests (no external dependencies)\npytest tests/ -q\n\n#integration tests (requires flamo venv + faust compiler)\npytest tests/integration/ -v\n```\n\n120 unit tests validate the full pipeline: parameter extraction, delay quantisation, SOS normalisation, gain classification, graph traversal, code generation, and end-to-end equivalence.\n\nintegration tests compare impulse responses between FLAMO (frequency domain) and generated FAUST (time domain) sample-by-sample.\n\n## project structure\n\n```\nsrc/flamo_rt/\n  codegen/\n    flamo_to_json.py     parameter extraction and graph traversal\n    json_to_faust.py     FAUST code generation from JSON config\n    flamo_to_faust.py    convenience wrapper (both steps)\ntests/\n    test_flamo_to_json.py\n    test_json_to_faust.py\n    test_flamo_to_faust.py\n    test_param_extraction.py\n    integration/\n        test_ir_comparison.py\n        generate_flamo_ir.py\n```\n\n## related projects\n\n- [FLAMO](https://github.com/gdalsanto/flamo) — differentiable audio processing framework\n- [pyFDN](https://github.com/gdalsanto/pyfdn) — python feedback delay networks\n- [FAUST](https://faust.grame.fr/) — functional audio stream\n\n## licence\n\nMIT — see [LICENSE](LICENSE) for details.\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcucuwritescode%2Frt-fdn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcucuwritescode%2Frt-fdn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcucuwritescode%2Frt-fdn/lists"}