# luminabench/lumina-sfx architecture

> Architecture diagram of the GitHub repository luminabench/lumina-sfx, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-06). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/luminabench/lumina-sfx
- Repository: https://github.com/luminabench/lumina-sfx

## Overview

Lumina SFX is an offline sound-design library for coding agents and game developers. The principal workflow is to select an editable recipe, shape or layer its sound, render and balance audio, export a WAV, and optionally integrate sounds into a game through engine adapters. The repository also includes recorded source clips and shared recipe techniques. The README establishes the product workflow; source excerpts and the SOURCE INDEX show selected engine and recipe dependencies, so unsampled subsystem links are omitted rather than assumed.

Main entry points: [`adapters`](https://github.com/luminabench/lumina-sfx/tree/main/adapters) (Game engine adapters), [`engine/render.ts`](https://github.com/luminabench/lumina-sfx/blob/main/engine/render.ts) (Recipe renderer), [`recipes`](https://github.com/luminabench/lumina-sfx/tree/main/recipes) (Editable sound recipes), [`recipes/_shared`](https://github.com/luminabench/lumina-sfx/tree/main/recipes/_shared) (Shared recipe techniques)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_catalog["Sound Library"]
  node_recipes["Editable sound recipes"]
  node_recordings["Recorded source clips"]
end

subgraph group_design["Sound Design"]
  node_shared["Shared recipe techniques"]
  node_sculpt["Sound sculpting<br/>[sculpt.ts]"]
  node_remix["Layered remixing<br/>[remix.ts]"]
end

subgraph group_runtime["Audio Runtime"]
  node_render["Recipe renderer<br/>[render.ts]"]
  node_dsp["Signal processing<br/>[dsp.ts]"]
  node_recording["Clip decoding<br/>[recording.ts]"]
  node_levels["Level balancing<br/>[levels.ts]"]
  node_wav["WAV encoding<br/>[wav.ts]"]
  node_player["Sound playback<br/>[player.ts]"]
  node_scene["Game audio scenes<br/>[scene.ts]"]
end

subgraph group_integration["Game Integration"]
  node_adapters["Game engine adapters"]
  node_unity["Unity helper<br/>[GameAudioHelper.cs]"]
  node_unreal["Unreal helper"]
  node_web["Three.js helper<br/>[audio-helper.js]"]
  node_python["Python helper<br/>[lumina_audio.py]"]
end

node_agent(("Coding agent / developer"))

node_agent -->|"selects sounds"| node_recipes
node_agent -->|"shapes sounds"| node_sculpt
node_agent -->|"layers effects"| node_remix
node_recipes -->|"uses clips"| node_recordings
node_recipes -->|"uses techniques"| node_shared
node_shared -->|"renders clips"| node_recording
node_recording -->|"filters samples"| node_dsp
node_render -->|"applies design"| node_sculpt
node_render -->|"processes audio"| node_dsp
node_render -->|"balances output"| node_levels
node_render -->|"exports WAV"| node_wav
node_agent -->|"exports audio"| node_wav
node_agent -->|"integrates sounds"| node_adapters
node_adapters -.->|"includes helper"| node_unity
node_adapters -.->|"includes helper"| node_unreal
node_adapters -.->|"includes helper"| node_web
node_adapters -.->|"includes helper"| node_python
node_scene -->|"uses playback"| node_player

click node_recipes "https://github.com/luminabench/lumina-sfx/tree/main/recipes"
click node_recordings "https://github.com/luminabench/lumina-sfx/tree/main/recipes/_recordings"
click node_shared "https://github.com/luminabench/lumina-sfx/tree/main/recipes/_shared"
click node_sculpt "https://github.com/luminabench/lumina-sfx/blob/main/engine/sculpt.ts"
click node_remix "https://github.com/luminabench/lumina-sfx/blob/main/engine/remix.ts"
click node_render "https://github.com/luminabench/lumina-sfx/blob/main/engine/render.ts"
click node_dsp "https://github.com/luminabench/lumina-sfx/blob/main/engine/dsp.ts"
click node_recording "https://github.com/luminabench/lumina-sfx/blob/main/engine/recording.ts"
click node_levels "https://github.com/luminabench/lumina-sfx/blob/main/engine/levels.ts"
click node_wav "https://github.com/luminabench/lumina-sfx/blob/main/engine/wav.ts"
click node_player "https://github.com/luminabench/lumina-sfx/blob/main/engine/player.ts"
click node_scene "https://github.com/luminabench/lumina-sfx/blob/main/engine/scene.ts"
click node_adapters "https://github.com/luminabench/lumina-sfx/tree/main/adapters"
click node_unity "https://github.com/luminabench/lumina-sfx/blob/main/adapters/unity/GameAudioHelper.cs"
click node_unreal "https://github.com/luminabench/lumina-sfx/blob/main/adapters/unreal/Source/LuminaSfx/Private/GameAudioHelperComponent.cpp"
click node_web "https://github.com/luminabench/lumina-sfx/blob/main/adapters/web-threejs/audio-helper.js"
click node_python "https://github.com/luminabench/lumina-sfx/blob/main/adapters/python/lumina_audio.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_recipes,node_recordings toneBlue
class node_shared,node_sculpt,node_remix toneAmber
class node_render,node_dsp,node_recording,node_levels,node_wav,node_player,node_scene toneMint
class node_adapters,node_unity,node_unreal,node_web,node_python toneRose
class node_agent toneIndigo
```

## Components

### Sound Library

- [Editable sound recipes](https://github.com/luminabench/lumina-sfx/tree/main/recipes): `recipes`
- [Recorded source clips](https://github.com/luminabench/lumina-sfx/tree/main/recipes/_recordings): `recipes/_recordings`

### Sound Design

- [Shared recipe techniques](https://github.com/luminabench/lumina-sfx/tree/main/recipes/_shared): `recipes/_shared`
- [Sound sculpting](https://github.com/luminabench/lumina-sfx/blob/main/engine/sculpt.ts): `engine/sculpt.ts`
- [Layered remixing](https://github.com/luminabench/lumina-sfx/blob/main/engine/remix.ts): `engine/remix.ts`

### Audio Runtime

- [Recipe renderer](https://github.com/luminabench/lumina-sfx/blob/main/engine/render.ts): `engine/render.ts`
- [Signal processing](https://github.com/luminabench/lumina-sfx/blob/main/engine/dsp.ts): `engine/dsp.ts`
- [Clip decoding](https://github.com/luminabench/lumina-sfx/blob/main/engine/recording.ts): `engine/recording.ts`
- [Level balancing](https://github.com/luminabench/lumina-sfx/blob/main/engine/levels.ts): `engine/levels.ts`
- [WAV encoding](https://github.com/luminabench/lumina-sfx/blob/main/engine/wav.ts): `engine/wav.ts`
- [Sound playback](https://github.com/luminabench/lumina-sfx/blob/main/engine/player.ts): `engine/player.ts`
- [Game audio scenes](https://github.com/luminabench/lumina-sfx/blob/main/engine/scene.ts): `engine/scene.ts`

### Game Integration

- [Game engine adapters](https://github.com/luminabench/lumina-sfx/tree/main/adapters): `adapters`
- [Unity helper](https://github.com/luminabench/lumina-sfx/blob/main/adapters/unity/GameAudioHelper.cs): `adapters/unity/GameAudioHelper.cs`
- [Unreal helper](https://github.com/luminabench/lumina-sfx/blob/main/adapters/unreal/Source/LuminaSfx/Private/GameAudioHelperComponent.cpp): `adapters/unreal/Source/LuminaSfx/Private/GameAudioHelperComponent.cpp`
- [Three.js helper](https://github.com/luminabench/lumina-sfx/blob/main/adapters/web-threejs/audio-helper.js): `adapters/web-threejs/audio-helper.js`
- [Python helper](https://github.com/luminabench/lumina-sfx/blob/main/adapters/python/lumina_audio.py): `adapters/python/lumina_audio.py`

### Other components

- **Coding agent / developer**

## Connections

- Coding agent / developer → Editable sound recipes: selects sounds (evidence: `README.md`)
- Coding agent / developer → Sound sculpting: shapes sounds (evidence: `README.md`)
- Coding agent / developer → Layered remixing: layers effects (evidence: `README.md`)
- Editable sound recipes → Recorded source clips: uses clips (evidence: `recipes/_recordings/motion-marine-engine.ts`)
- Editable sound recipes → Shared recipe techniques: uses techniques (evidence: `recipes/motorcycle-steady-engine-loop.ts`)
- Shared recipe techniques → Clip decoding: renders clips (evidence: `recipes/_shared/material-scenes.ts`)
- Clip decoding → Signal processing: filters samples (evidence: `engine/recording.ts`)
- Recipe renderer → Sound sculpting: applies design (evidence: `engine/render.ts`)
- Recipe renderer → Signal processing: processes audio (evidence: `engine/render.ts`)
- Recipe renderer → Level balancing: balances output (evidence: `engine/render.ts`)
- Recipe renderer → WAV encoding: exports WAV (evidence: `engine/wav.ts`)
- Coding agent / developer → WAV encoding: exports audio (evidence: `README.md`)
- Coding agent / developer → Game engine adapters: integrates sounds (evidence: `README.md`)
- Game engine adapters → Unity helper: includes helper
- Game engine adapters → Unreal helper: includes helper (evidence: `adapters/unreal/Source/LuminaSfx/Private/GameAudioHelperComponent.cpp`)
- Game engine adapters → Three.js helper: includes helper
- Game engine adapters → Python helper: includes helper
- Game audio scenes → Sound playback: uses playback (evidence: `engine/scene.ts`)
