# strngrthnall/nota architecture

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

- Interactive diagram: https://gitdiagram.com/strngrthnall/nota
- Repository: https://github.com/strngrthnall/nota

## Overview

Nota is a cross-platform digital audio workstation for composing, recording, arranging, mixing, and exporting music. The user-facing workflow spans Arrangement, Session, and Modular editing, device chains, and audio-engine playback; supporting branches include browsing, controllers, phone-based remote control, and optional AI control. The README documents these capabilities, while the shown source gives only a partial view of wiring, so unverified runtime links are omitted or dashed rather than inferred.

Main entry points: [`src/managed/Nota.App/Program.cs`](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/Program.cs) (Desktop app), [`src/web/remote/src/App.svelte`](https://github.com/strngrthnall/nota/blob/develop/src/web/remote/src/App.svelte) (Phone controller), [`src/managed/Nota.Application/Engine/EngineContracts.cs`](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.Application/Engine/EngineContracts.cs) (Audio engine port), [`src/managed/Nota.Infrastructure/Interop/NotaEngine.Tracks.cs`](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.Infrastructure/Interop/NotaEngine.Tracks.cs) (Native interop)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_editing["Composition and editing"]
  node_app["Desktop app<br/>[Program.cs]"]
  node_arrangement["Arrangement<br/>[ArrangementView.cs]"]
  node_piano["Piano roll<br/>[PianoRollView.cs]"]
  node_session["Session grid<br/>[SessionView.cs]"]
  node_modular["Modular view<br/>[ModularView.cs]"]
  node_mixer["Mixer<br/>[MixerView.cs]"]
end

subgraph group_sound["Sound and engine"]
  node_devices["Device chains<br/>[DeviceChainView.cs]"]
  node_export["Audio export<br/>[ExportWindow.cs]"]
  node_engine["Audio engine port<br/>[EngineContracts.cs]"]
  node_interop["Native interop"]
  node_native["Native audio engine<br/>[Engine.h]"]
end

subgraph group_support["Project and integrations"]
  node_browser["Browser<br/>[BrowserView.cs]"]
  node_controllers["Controller service"]
  node_projects["Project persistence<br/>[ProjectService.cs]"]
  node_mcp["AI control<br/>[EngineTools.cs]"]
end

subgraph group_remote["Remote control"]
  node_phone["Phone controller<br/>[App.svelte]"]
  node_remote_service["Remote service<br/>[RemoteService.cs]"]
end

node_user(("Musician"))

node_user -->|"uses"| node_app
node_app -.->|"edits songs"| node_arrangement
node_user -->|"launches clips"| node_session
node_user -->|"patches modulation"| node_modular
node_user -->|"edits MIDI"| node_piano
node_user -->|"mixes tracks"| node_mixer
node_user -->|"selects devices"| node_devices
node_user -->|"browses media"| node_browser
node_user -->|"exports audio"| node_export
node_controllers -->|"controls engine"| node_engine
node_interop -.->|"calls ABI"| node_native
node_projects -.->|"saves projects"| node_app
node_user -->|"controls remotely"| node_phone
node_phone -.->|"connects remotely"| node_remote_service
node_mcp -->|"controls project"| node_engine

click node_app "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/Program.cs"
click node_arrangement "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/ArrangementView.cs"
click node_piano "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/PianoRollView.cs"
click node_session "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/SessionView.cs"
click node_modular "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/ModularView.cs"
click node_mixer "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/MixerView.cs"
click node_devices "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/DeviceChainView.cs"
click node_browser "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/BrowserView.cs"
click node_controllers "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/Controllers/ControllerService.cs"
click node_projects "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.Infrastructure/Persistence/ProjectService.cs"
click node_export "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/ExportWindow.cs"
click node_engine "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.Application/Engine/EngineContracts.cs"
click node_interop "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.Infrastructure/Interop/NotaEngine.Tracks.cs"
click node_native "https://github.com/strngrthnall/nota/blob/develop/src/native/nota.engine/src/engine/Engine.h"
click node_phone "https://github.com/strngrthnall/nota/blob/develop/src/web/remote/src/App.svelte"
click node_remote_service "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/Remote/RemoteService.cs"
click node_mcp "https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.Mcp/EngineTools.cs"

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_arrangement,node_piano,node_session,node_modular,node_mixer toneBlue
class node_devices,node_export,node_engine,node_interop,node_native toneAmber
class node_browser,node_controllers,node_projects,node_mcp toneMint
class node_phone,node_remote_service toneRose
class node_user toneIndigo
```

## Components

### Composition and editing

- [Desktop app](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/Program.cs): `src/managed/Nota.App/Program.cs`
- [Arrangement](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/ArrangementView.cs): `src/managed/Nota.App/ArrangementView.cs`
- [Piano roll](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/PianoRollView.cs): `src/managed/Nota.App/PianoRollView.cs`
- [Session grid](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/SessionView.cs): `src/managed/Nota.App/SessionView.cs`
- [Modular view](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/ModularView.cs): `src/managed/Nota.App/ModularView.cs`
- [Mixer](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/MixerView.cs): `src/managed/Nota.App/MixerView.cs`

### Sound and engine

- [Device chains](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/DeviceChainView.cs): `src/managed/Nota.App/DeviceChainView.cs`
- [Audio export](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/ExportWindow.cs): `src/managed/Nota.App/ExportWindow.cs`
- [Audio engine port](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.Application/Engine/EngineContracts.cs): `src/managed/Nota.Application/Engine/EngineContracts.cs`
- [Native interop](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.Infrastructure/Interop/NotaEngine.Tracks.cs): `src/managed/Nota.Infrastructure/Interop/NotaEngine.Tracks.cs`
- [Native audio engine](https://github.com/strngrthnall/nota/blob/develop/src/native/nota.engine/src/engine/Engine.h): `src/native/nota.engine/src/engine/Engine.h`

### Project and integrations

- [Browser](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/BrowserView.cs): `src/managed/Nota.App/BrowserView.cs`
- [Controller service](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/Controllers/ControllerService.cs): `src/managed/Nota.App/Controllers/ControllerService.cs`
- [Project persistence](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.Infrastructure/Persistence/ProjectService.cs): `src/managed/Nota.Infrastructure/Persistence/ProjectService.cs`
- [AI control](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.Mcp/EngineTools.cs): `src/managed/Nota.Mcp/EngineTools.cs`

### Remote control

- [Phone controller](https://github.com/strngrthnall/nota/blob/develop/src/web/remote/src/App.svelte): `src/web/remote/src/App.svelte`
- [Remote service](https://github.com/strngrthnall/nota/blob/develop/src/managed/Nota.App/Remote/RemoteService.cs): `src/managed/Nota.App/Remote/RemoteService.cs`

### Other components

- **Musician**

## Connections

- Musician → Desktop app: uses (evidence: `README.md`)
- Desktop app → Arrangement: edits songs
- Musician → Session grid: launches clips (evidence: `README.md`)
- Musician → Modular view: patches modulation (evidence: `README.md`)
- Musician → Piano roll: edits MIDI (evidence: `README.md`)
- Musician → Mixer: mixes tracks (evidence: `README.md`)
- Musician → Device chains: selects devices (evidence: `README.md`)
- Musician → Browser: browses media (evidence: `README.md`)
- Musician → Audio export: exports audio (evidence: `README.md`)
- Controller service → Audio engine port: controls engine (evidence: `src/managed/Nota.App/Controllers/ControllerService.cs`)
- Native interop → Native audio engine: calls ABI
- Project persistence → Desktop app: saves projects
- Musician → Phone controller: controls remotely (evidence: `README.md`)
- Phone controller → Remote service: connects remotely
- AI control → Audio engine port: controls project (evidence: `src/managed/Nota.Mcp/EngineTools.cs`)
