# inoshiro90/soundboard architecture

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

- Interactive diagram: https://gitdiagram.com/inoshiro90/soundboard
- Repository: https://github.com/inoshiro90/soundboard

## Overview

This is a browser-based soundboard and audio workspace: users manage sound profiles and effect layers, preview or play sounds, and can also work with ambient scenes and music tracks. The audio path normalizes effect data into an ordered pipeline, prepares browser audio resources, builds a render graph, and connects playback to the appropriate output. The tree also shows export, analysis, timeline, and carrier-file capabilities. The README is empty; relationships below are limited to imports and calls evidenced by excerpts or the SOURCE INDEX.

Main entry points: [`js/renderPipeline.js`](https://github.com/inoshiro90/soundboard/blob/main/js/renderPipeline.js) (Render pipeline), [`js/audio/fx-pipeline.js`](https://github.com/inoshiro90/soundboard/blob/main/js/audio/fx-pipeline.js) (Pipeline planning), [`js/main.js`](https://github.com/inoshiro90/soundboard/blob/main/js/main.js) (App bootstrap), [`js/fx-model.js`](https://github.com/inoshiro90/soundboard/blob/main/js/fx-model.js) (Effect data model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Interaction"]
  node_app["App bootstrap<br/>[main.js]"]
  node_events["Event registration<br/>[index.js]"]
  node_tile_events["Soundboard actions"]
  node_sound_dialog["Sound editor<br/>[sound-modal.js]"]
  node_pipeline_dialog["Effects editor"]
end

subgraph group_domain["Sound and Effects"]
  node_state[("Application state<br/>[state.js]")]
  node_fx_model["Effect data model<br/>[fx-model.js]"]
  node_presets["Effect presets<br/>[presets.js]"]
end

subgraph group_audio["Audio Engine"]
  node_registry["Effect registry<br/>[registry.js]"]
  node_fx_pipeline["Pipeline planning<br/>[fx-pipeline.js]"]
  node_effect_graph["Effect graph<br/>[effect-graph.js]"]
  node_render["Render pipeline<br/>[renderPipeline.js]"]
  node_audio_context["Audio context<br/>[context.js]"]
  node_output["Audio output<br/>[output.js]"]
end

subgraph group_modes["Playback Modes"]
  node_preview["Sound preview<br/>[preview.js]"]
  node_sound_playback["Sound playback<br/>[playback.js]"]
  node_ambient["Ambient playback"]
  node_music["Music playback<br/>[music-playback.js]"]
  node_music_model["Music model<br/>[music-model.js]"]
  node_ambient_model["Ambient model<br/>[ambient-model.js]"]
  node_export["Audio export<br/>[export.js]"]
  node_analysis["Audio analysis<br/>[analysis.js]"]
  node_timeline["Timeline<br/>[timeline.js]"]
end

subgraph group_data["Storage and Transfer"]
  node_storage["Persistence<br/>[persistence.js]"]
  node_database[("Audio database<br/>[db.js]")]
  node_transfer["Import and export<br/>[import-export.js]"]
  node_carrier_store["Carrier files<br/>[carrier-store.js]"]
end

node_user(("User"))

node_user -->|"opens"| node_app
node_app -->|"registers"| node_events
node_app -->|"uses"| node_state
node_app -->|"initializes"| node_storage
node_events -->|"registers"| node_tile_events
node_tile_events -->|"starts playback"| node_sound_playback
node_sound_dialog -->|"reads and updates"| node_state
node_sound_dialog -->|"persists changes"| node_storage
node_sound_dialog -->|"uses"| node_fx_model
node_pipeline_dialog -->|"edits effects"| node_fx_model
node_fx_model -->|"normalizes through"| node_fx_pipeline
node_fx_model -->|"loads presets"| node_presets
node_presets -->|"uses module schema"| node_registry
node_fx_pipeline -->|"resolves modules"| node_registry
node_render -->|"plans and builds"| node_fx_pipeline
node_render -.->|"builds graph"| node_effect_graph
node_render -.->|"prepares context"| node_audio_context
node_preview -->|"renders through"| node_render
node_preview -->|"prepares plan"| node_fx_pipeline
node_sound_playback -.->|"renders audio"| node_render
node_ambient -->|"renders audio"| node_render
node_ambient -->|"uses scene data"| node_ambient_model
node_music -->|"uses track data"| node_music_model
node_music -->|"prepares effects"| node_fx_pipeline
node_render -.->|"connects playback"| node_output
node_audio_context -->|"reads state"| node_state
node_storage -->|"stores audio"| node_database
node_transfer -->|"transfers audio"| node_database
node_carrier_store -->|"stores carriers"| node_database

click node_app "https://github.com/inoshiro90/soundboard/blob/main/js/main.js"
click node_events "https://github.com/inoshiro90/soundboard/blob/main/js/events/index.js"
click node_tile_events "https://github.com/inoshiro90/soundboard/blob/main/js/events/register-tile-events.js"
click node_sound_dialog "https://github.com/inoshiro90/soundboard/blob/main/js/dialogs/sound-modal.js"
click node_pipeline_dialog "https://github.com/inoshiro90/soundboard/blob/main/js/dialogs/fx-pipeline-modals.js"
click node_state "https://github.com/inoshiro90/soundboard/blob/main/js/core/state.js"
click node_fx_model "https://github.com/inoshiro90/soundboard/blob/main/js/fx-model.js"
click node_presets "https://github.com/inoshiro90/soundboard/blob/main/js/presets.js"
click node_registry "https://github.com/inoshiro90/soundboard/blob/main/js/audio/engine/registry.js"
click node_fx_pipeline "https://github.com/inoshiro90/soundboard/blob/main/js/audio/fx-pipeline.js"
click node_effect_graph "https://github.com/inoshiro90/soundboard/blob/main/js/audio/effect-graph.js"
click node_render "https://github.com/inoshiro90/soundboard/blob/main/js/renderPipeline.js"
click node_audio_context "https://github.com/inoshiro90/soundboard/blob/main/js/audio/context.js"
click node_output "https://github.com/inoshiro90/soundboard/blob/main/js/audio/engine/output.js"
click node_preview "https://github.com/inoshiro90/soundboard/blob/main/js/audio/preview.js"
click node_sound_playback "https://github.com/inoshiro90/soundboard/blob/main/js/audio/playback.js"
click node_ambient "https://github.com/inoshiro90/soundboard/blob/main/js/ambient/ambient-playback.js"
click node_music "https://github.com/inoshiro90/soundboard/blob/main/js/music/music-playback.js"
click node_music_model "https://github.com/inoshiro90/soundboard/blob/main/js/music/music-model.js"
click node_ambient_model "https://github.com/inoshiro90/soundboard/blob/main/js/ambient/ambient-model.js"
click node_export "https://github.com/inoshiro90/soundboard/blob/main/js/export.js"
click node_analysis "https://github.com/inoshiro90/soundboard/blob/main/js/analysis.js"
click node_timeline "https://github.com/inoshiro90/soundboard/blob/main/js/timeline.js"
click node_storage "https://github.com/inoshiro90/soundboard/blob/main/js/storage/persistence.js"
click node_database "https://github.com/inoshiro90/soundboard/blob/main/js/db.js"
click node_transfer "https://github.com/inoshiro90/soundboard/blob/main/js/storage/import-export.js"
click node_carrier_store "https://github.com/inoshiro90/soundboard/blob/main/js/storage/carrier-store.js"

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_app,node_events,node_tile_events,node_sound_dialog,node_pipeline_dialog,node_user toneBlue
class node_state,node_fx_model,node_presets toneAmber
class node_registry,node_fx_pipeline,node_effect_graph,node_render,node_audio_context,node_output toneMint
class node_preview,node_sound_playback,node_ambient,node_music,node_music_model,node_ambient_model,node_export,node_analysis,node_timeline toneRose
class node_storage,node_database,node_transfer,node_carrier_store toneIndigo
```

## Components

### Interaction

- [App bootstrap](https://github.com/inoshiro90/soundboard/blob/main/js/main.js): `js/main.js`
- [Event registration](https://github.com/inoshiro90/soundboard/blob/main/js/events/index.js): `js/events/index.js`
- [Soundboard actions](https://github.com/inoshiro90/soundboard/blob/main/js/events/register-tile-events.js): `js/events/register-tile-events.js`
- [Sound editor](https://github.com/inoshiro90/soundboard/blob/main/js/dialogs/sound-modal.js): `js/dialogs/sound-modal.js`
- [Effects editor](https://github.com/inoshiro90/soundboard/blob/main/js/dialogs/fx-pipeline-modals.js): `js/dialogs/fx-pipeline-modals.js`

### Sound and Effects

- [Application state](https://github.com/inoshiro90/soundboard/blob/main/js/core/state.js): `js/core/state.js`
- [Effect data model](https://github.com/inoshiro90/soundboard/blob/main/js/fx-model.js): `js/fx-model.js`
- [Effect presets](https://github.com/inoshiro90/soundboard/blob/main/js/presets.js): `js/presets.js`

### Audio Engine

- [Effect registry](https://github.com/inoshiro90/soundboard/blob/main/js/audio/engine/registry.js): `js/audio/engine/registry.js`
- [Pipeline planning](https://github.com/inoshiro90/soundboard/blob/main/js/audio/fx-pipeline.js): `js/audio/fx-pipeline.js`
- [Effect graph](https://github.com/inoshiro90/soundboard/blob/main/js/audio/effect-graph.js): `js/audio/effect-graph.js`
- [Render pipeline](https://github.com/inoshiro90/soundboard/blob/main/js/renderPipeline.js): `js/renderPipeline.js`
- [Audio context](https://github.com/inoshiro90/soundboard/blob/main/js/audio/context.js): `js/audio/context.js`
- [Audio output](https://github.com/inoshiro90/soundboard/blob/main/js/audio/engine/output.js): `js/audio/engine/output.js`

### Playback Modes

- [Sound preview](https://github.com/inoshiro90/soundboard/blob/main/js/audio/preview.js): `js/audio/preview.js`
- [Sound playback](https://github.com/inoshiro90/soundboard/blob/main/js/audio/playback.js): `js/audio/playback.js`
- [Ambient playback](https://github.com/inoshiro90/soundboard/blob/main/js/ambient/ambient-playback.js): `js/ambient/ambient-playback.js`
- [Music playback](https://github.com/inoshiro90/soundboard/blob/main/js/music/music-playback.js): `js/music/music-playback.js`
- [Music model](https://github.com/inoshiro90/soundboard/blob/main/js/music/music-model.js): `js/music/music-model.js`
- [Ambient model](https://github.com/inoshiro90/soundboard/blob/main/js/ambient/ambient-model.js): `js/ambient/ambient-model.js`
- [Audio export](https://github.com/inoshiro90/soundboard/blob/main/js/export.js): `js/export.js`
- [Audio analysis](https://github.com/inoshiro90/soundboard/blob/main/js/analysis.js): `js/analysis.js`
- [Timeline](https://github.com/inoshiro90/soundboard/blob/main/js/timeline.js): `js/timeline.js`

### Storage and Transfer

- [Persistence](https://github.com/inoshiro90/soundboard/blob/main/js/storage/persistence.js): `js/storage/persistence.js`
- [Audio database](https://github.com/inoshiro90/soundboard/blob/main/js/db.js): `js/db.js`
- [Import and export](https://github.com/inoshiro90/soundboard/blob/main/js/storage/import-export.js): `js/storage/import-export.js`
- [Carrier files](https://github.com/inoshiro90/soundboard/blob/main/js/storage/carrier-store.js): `js/storage/carrier-store.js`

### Other components

- **User**

## Connections

- User → App bootstrap: opens
- App bootstrap → Event registration: registers (evidence: `js/main.js`)
- App bootstrap → Application state: uses (evidence: `js/main.js`)
- App bootstrap → Persistence: initializes (evidence: `js/main.js`)
- Event registration → Soundboard actions: registers (evidence: `js/events/index.js`)
- Soundboard actions → Sound playback: starts playback (evidence: `js/events/register-tile-events.js`)
- Sound editor → Application state: reads and updates (evidence: `js/dialogs/sound-modal.js`)
- Sound editor → Persistence: persists changes (evidence: `js/dialogs/sound-modal.js`)
- Sound editor → Effect data model: uses (evidence: `js/dialogs/sound-modal.js`)
- Effects editor → Effect data model: edits effects (evidence: `js/dialogs/fx-pipeline-modals.js`)
- Effect data model → Pipeline planning: normalizes through (evidence: `js/fx-model.js`)
- Effect data model → Effect presets: loads presets (evidence: `js/fx-model.js`)
- Effect presets → Effect registry: uses module schema (evidence: `js/presets.js`)
- Pipeline planning → Effect registry: resolves modules (evidence: `js/audio/fx-pipeline.js`)
- Render pipeline → Pipeline planning: plans and builds (evidence: `js/renderPipeline.js`)
- Render pipeline → Effect graph: builds graph
- Render pipeline → Audio context: prepares context
- Sound preview → Render pipeline: renders through (evidence: `js/audio/preview.js`)
- Sound preview → Pipeline planning: prepares plan (evidence: `js/audio/preview.js`)
- Sound playback → Render pipeline: renders audio
- Ambient playback → Render pipeline: renders audio (evidence: `js/ambient/ambient-playback.js`)
- Ambient playback → Ambient model: uses scene data (evidence: `js/ambient/ambient-playback.js`)
- Music playback → Music model: uses track data (evidence: `js/music/music-playback.js`)
- Music playback → Pipeline planning: prepares effects (evidence: `js/music/music-playback.js`)
- Render pipeline → Audio output: connects playback (evidence: `js/renderPipeline.js`)
- Audio context → Application state: reads state (evidence: `js/audio/context.js`)
- Persistence → Audio database: stores audio (evidence: `js/storage/persistence.js`)
- Import and export → Audio database: transfers audio (evidence: `js/storage/import-export.js`)
- Carrier files → Audio database: stores carriers (evidence: `js/storage/carrier-store.js`)
