# mat1jaczyyy/apollo-studio architecture

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

- Interactive diagram: https://gitdiagram.com/mat1jaczyyy/apollo-studio
- Repository: https://github.com/mat1jaczyyy/apollo-studio

## Overview

Apollo Studio is a desktop editor and live playback engine for Launchpad light effects. Users configure Launchpads, create or open a project, arrange tracks and effect devices, edit patterns, and play the resulting signals to connected hardware. The runtime carries signals through track/device processing into screen rendering and Launchpad MIDI output. The README also documents true RGB color, model support, global intensity, multithreading, and an Ableton Live companion workflow. Some feature modules are unsampled; their inclusion reflects the tree and README, while unsupported connections are omitted.

Main entry points: [`Apollo/Elements/Project.cs`](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Elements/Project.cs) (Project model), [`Apollo/Devices`](https://github.com/mat1jaczyyy/apollo-studio/tree/master/Apollo/Devices) (Effect devices), [`Apollo/Core/App.cs`](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Core/App.cs) (Application shell), [`Apollo/Elements/Launchpads/Launchpad.cs`](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Elements/Launchpads/Launchpad.cs) (Launchpad protocol)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Project Workspace"]
  node_app["Application shell<br/>[App.cs]"]
  node_projectwindow["Project editor<br/>[ProjectWindow.cs]"]
  node_trackwindow["Track editor<br/>[TrackWindow.cs]"]
  node_patternwindow["Pattern editor<br/>[PatternWindow.cs]"]
  node_project["Project model<br/>[Project.cs]"]
  node_tracks["Tracks and chains<br/>[Track.cs]"]
end

subgraph group_editing["Editing and Effects"]
  node_selection["Selection and drag-drop"]
  node_undo["Undo manager<br/>[UndoManager.cs]"]
  node_device["Effect device runtime<br/>[Device.cs]"]
  node_effectdevices["Effect devices"]
  node_viewers["Device viewers"]
end

subgraph group_playback["Playback and Rendering"]
  node_signals["Signal data<br/>[Signal.cs]"]
  node_scheduler["Playback scheduler<br/>[Heaven.cs]"]
  node_screen["Screen compositing<br/>[Screen.cs]"]
  node_updates["Raw display updates<br/>[RawUpdate.cs]"]
end

subgraph group_hardware["Launchpad I/O"]
  node_launchpad["Launchpad protocol<br/>[Launchpad.cs]"]
  node_midi["MIDI device layer"]
end

subgraph group_support["Persistence and Settings"]
  node_binary["Project codec<br/>[Encoder.cs]"]
  node_preferences["Preferences<br/>[Preferences.cs]"]
  node_color["RGB color model<br/>[Color.cs]"]
end

node_user(("Studio user"))
node_externalpads(("Launchpad hardware"))
node_ableton(("Ableton Live"))

node_user -->|"starts"| node_app
node_app -->|"opens"| node_projectwindow
node_app -->|"opens"| node_trackwindow
node_app -->|"opens"| node_patternwindow
node_projectwindow -.->|"edits"| node_project
node_trackwindow -.->|"edits"| node_tracks
node_patternwindow -->|"configures"| node_effectdevices
node_project -->|"creates"| node_tracks
node_project -->|"encodes"| node_binary
node_project -->|"owns"| node_undo
node_selection -->|"operates on"| node_effectdevices
node_undo -->|"records changes"| node_project
node_viewers -->|"views"| node_effectdevices
node_tracks -->|"sends signals"| node_scheduler
node_device -->|"schedules jobs"| node_scheduler
node_effectdevices -->|"processes"| node_signals
node_launchpad -->|"renders output"| node_screen
node_launchpad -->|"uses MIDI"| node_midi
node_midi -.->|"communicates"| node_externalpads
node_screen -->|"emits updates"| node_updates
node_updates -.->|"drives display"| node_launchpad
node_preferences -->|"loads and saves"| node_binary
node_effectdevices -->|"uses colors"| node_color
node_ableton -.->|"companion workflow"| node_user

click node_app "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Core/App.cs"
click node_projectwindow "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Windows/ProjectWindow.cs"
click node_trackwindow "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Windows/TrackWindow.cs"
click node_patternwindow "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Windows/PatternWindow.cs"
click node_project "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Elements/Project.cs"
click node_tracks "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Elements/Track.cs"
click node_selection "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Selection/SelectionManager.cs"
click node_undo "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Undo/UndoManager.cs"
click node_device "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Elements/Device.cs"
click node_effectdevices "https://github.com/mat1jaczyyy/apollo-studio/tree/master/Apollo/Devices"
click node_viewers "https://github.com/mat1jaczyyy/apollo-studio/tree/master/Apollo/DeviceViewers"
click node_signals "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Structures/Signal.cs"
click node_scheduler "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Rendering/Heaven.cs"
click node_screen "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Rendering/Screen.cs"
click node_updates "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Rendering/RawUpdate.cs"
click node_launchpad "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Elements/Launchpads/Launchpad.cs"
click node_midi "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/RtMidi/MidiDeviceManager.cs"
click node_binary "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Binary/Encoder.cs"
click node_preferences "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Core/Preferences.cs"
click node_color "https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Structures/Color.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_projectwindow,node_trackwindow,node_patternwindow,node_project,node_tracks,node_user toneBlue
class node_selection,node_undo,node_device,node_effectdevices,node_viewers toneAmber
class node_signals,node_scheduler,node_screen,node_updates toneMint
class node_launchpad,node_midi toneRose
class node_binary,node_preferences,node_color,node_externalpads,node_ableton toneIndigo
```

## Components

### Project Workspace

- [Application shell](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Core/App.cs): `Apollo/Core/App.cs`
- [Project editor](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Windows/ProjectWindow.cs): `Apollo/Windows/ProjectWindow.cs`
- [Track editor](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Windows/TrackWindow.cs): `Apollo/Windows/TrackWindow.cs`
- [Pattern editor](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Windows/PatternWindow.cs): `Apollo/Windows/PatternWindow.cs`
- [Project model](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Elements/Project.cs): `Apollo/Elements/Project.cs`
- [Tracks and chains](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Elements/Track.cs): `Apollo/Elements/Track.cs`

### Editing and Effects

- [Selection and drag-drop](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Selection/SelectionManager.cs): `Apollo/Selection/SelectionManager.cs`
- [Undo manager](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Undo/UndoManager.cs): `Apollo/Undo/UndoManager.cs`
- [Effect device runtime](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Elements/Device.cs): `Apollo/Elements/Device.cs`
- [Effect devices](https://github.com/mat1jaczyyy/apollo-studio/tree/master/Apollo/Devices): `Apollo/Devices`
- [Device viewers](https://github.com/mat1jaczyyy/apollo-studio/tree/master/Apollo/DeviceViewers): `Apollo/DeviceViewers`

### Playback and Rendering

- [Signal data](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Structures/Signal.cs): `Apollo/Structures/Signal.cs`
- [Playback scheduler](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Rendering/Heaven.cs): `Apollo/Rendering/Heaven.cs`
- [Screen compositing](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Rendering/Screen.cs): `Apollo/Rendering/Screen.cs`
- [Raw display updates](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Rendering/RawUpdate.cs): `Apollo/Rendering/RawUpdate.cs`

### Launchpad I/O

- [Launchpad protocol](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Elements/Launchpads/Launchpad.cs): `Apollo/Elements/Launchpads/Launchpad.cs`
- [MIDI device layer](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/RtMidi/MidiDeviceManager.cs): `Apollo/RtMidi/MidiDeviceManager.cs`

### Persistence and Settings

- [Project codec](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Binary/Encoder.cs): `Apollo/Binary/Encoder.cs`
- [Preferences](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Core/Preferences.cs): `Apollo/Core/Preferences.cs`
- [RGB color model](https://github.com/mat1jaczyyy/apollo-studio/blob/master/Apollo/Structures/Color.cs): `Apollo/Structures/Color.cs`

### Other components

- **Studio user**
- **Launchpad hardware**
- **Ableton Live**

## Connections

- Studio user → Application shell: starts (evidence: `Apollo/Core/App.cs`)
- Application shell → Project editor: opens (evidence: `Apollo/Core/App.cs`)
- Application shell → Track editor: opens (evidence: `Apollo/Core/App.cs`)
- Application shell → Pattern editor: opens (evidence: `Apollo/Core/App.cs`)
- Project editor → Project model: edits (evidence: `Apollo/Elements/Project.cs`)
- Track editor → Tracks and chains: edits (evidence: `Apollo/Elements/Track.cs`)
- Pattern editor → Effect devices: configures (evidence: `Apollo/Windows/PatternWindow.cs`)
- Project model → Tracks and chains: creates (evidence: `Apollo/Elements/Project.cs`)
- Project model → Project codec: encodes (evidence: `Apollo/Elements/Project.cs`)
- Project model → Undo manager: owns (evidence: `Apollo/Elements/Project.cs`)
- Selection and drag-drop → Effect devices: operates on (evidence: `Apollo/Selection/SelectionManager.cs`)
- Undo manager → Project model: records changes (evidence: `Apollo/Undo/UndoManager.cs`)
- Device viewers → Effect devices: views (evidence: `Apollo/DeviceViewers/PreviewViewer.cs`)
- Tracks and chains → Playback scheduler: sends signals (evidence: `Apollo/Elements/Track.cs`)
- Effect device runtime → Playback scheduler: schedules jobs (evidence: `Apollo/Elements/Device.cs`)
- Effect devices → Signal data: processes (evidence: `Apollo/Devices/Clear.cs`)
- Launchpad protocol → Screen compositing: renders output (evidence: `Apollo/Elements/Launchpads/Launchpad.cs`)
- Launchpad protocol → MIDI device layer: uses MIDI (evidence: `Apollo/Elements/Launchpads/Launchpad.cs`)
- MIDI device layer → Launchpad hardware: communicates (evidence: `Apollo/RtMidi/MidiDeviceManager.cs`)
- Screen compositing → Raw display updates: emits updates (evidence: `Apollo/Rendering/Screen.cs`)
- Raw display updates → Launchpad protocol: drives display (evidence: `Apollo/Elements/Launchpads/Launchpad.cs`)
- Preferences → Project codec: loads and saves (evidence: `Apollo/Core/Preferences.cs`)
- Effect devices → RGB color model: uses colors (evidence: `Apollo/Devices/Copy.cs`)
- Ableton Live → Studio user: companion workflow
