# vixenlights/vixen architecture

> Architecture diagram of the GitHub repository vixenlights/vixen, 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/vixenlights/vixen
- Repository: https://github.com/vixenlights/vixen

## Overview

Vixen is a Windows application for authoring and running animated light shows synchronized to music. The principal workflow is to organize show elements, sequence effects over time, patch elements to controller outputs, and execute the show through output devices. The repository also documents DIY, DMX, traditional and pixel-lighting support, plus a pluggable module framework. The map combines those documented capabilities with the sampled application, execution, output, and live-preview code; unsampled subsystem links are shown only where the README supports them.

Main entry points: [`src/Vixen.Application/VixenApplication.cs`](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Application/VixenApplication.cs) (Vixen application), [`src/Vixen.Application/Setup`](https://github.com/vixenlights/vixen/tree/master/src/Vixen.Application/Setup) (Display and patch setup), [`src/Vixen.Core/Sys/Execution.cs`](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Sys/Execution.cs) (Sequence runtime), [`src/Vixen.Core/Sys/VixenSystem.cs`](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Sys/VixenSystem.cs) (System services and lifecycle)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application and setup"]
  node_vixenapp["Vixen application"]
  node_setup["Display and patch setup<br/>[Setup]"]
  node_controllerui["Controller management UI"]
end

subgraph group_authoring["Show authoring"]
  node_timeline["Timeline editing<br/>[TimelineControl.cs]"]
end

subgraph group_runtime["Execution and outputs"]
  node_sequence["Sequence runtime<br/>[Execution.cs]"]
  node_sequence_state["Execution state machine"]
  node_system["System services and lifecycle<br/>[VixenSystem.cs]"]
  node_dataflow["Data-flow framework"]
  node_output["Controller output mapping"]
  node_outputvalue["Output state reference<br/>[Output.cs]"]
  node_previewmanager["Preview device manager<br/>[PreviewManager.cs]"]
  node_appservices["Application services"]
end

subgraph group_modules["Modules and preview"]
  node_effects["Effect modules<br/>[Effect]"]
  node_text_effect["Text effect<br/>[Text.cs]"]
  node_controller_model["Controller model<br/>[Controller.cs]"]
  node_livepreview["Live preview service"]
  node_export["Controller export"]
  node_webserver["Web server controllers<br/>[Controllers]"]
  node_location["Curve location support<br/>[Location.cs]"]
end

subgraph group_common["Shared components"]
  node_elementtree["Element and controller trees<br/>[ControllerTree.cs]"]
  node_timelineevents["Timeline edit events<br/>[EventArgs.cs]"]
  node_audio["Audio playback"]
  node_nshape["Diagram editing framework"]
  node_messagebox["Common UI dialogs<br/>[MessageBoxForm.cs]"]
  node_theme["Control theming"]
  node_collections["Shared collections<br/>[Collections.cs]"]
end

node_showmaker(("Show creator"))

node_showmaker -->|"authors and runs"| node_vixenapp
node_vixenapp -->|"configures show"| node_setup
node_setup -->|"manages controllers"| node_controllerui
node_controllerui -->|"uses controller tree"| node_elementtree
node_setup -.->|"supports sequencing"| node_timeline
node_timeline -->|"raises edit events"| node_timelineevents
node_timeline -.->|"sequences effects"| node_effects
node_effects -->|"includes effect"| node_text_effect
node_vixenapp -.->|"runs show"| node_sequence
node_sequence -->|"controls run state"| node_sequence_state
node_sequence -->|"uses system contexts"| node_system
node_system -->|"initializes data flow"| node_dataflow
node_output -->|"registers adapters"| node_dataflow
node_output -->|"manages outputs"| node_outputvalue
node_outputvalue -->|"reads output state"| node_dataflow
node_controllerui -->|"represents controllers"| node_controller_model
node_livepreview -->|"resolves elements"| node_system
node_livepreview -->|"creates preview effects"| node_effects
node_previewmanager -->|"removes module data"| node_system
node_sequence -.->|"syncs to music"| node_audio
node_vixenapp -.->|"exports controllers"| node_export
node_vixenapp -.->|"offers modular features"| node_webserver
node_setup -.->|"uses graphical patching"| node_nshape
node_vixenapp -.->|"uses application services"| node_appservices

click node_vixenapp "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Application/VixenApplication.cs"
click node_setup "https://github.com/vixenlights/vixen/tree/master/src/Vixen.Application/Setup"
click node_controllerui "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Application/Setup/SetupControllersSimple.cs"
click node_elementtree "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/Controls/ControllerTree.cs"
click node_timeline "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/Controls/TimeLineControl/TimelineControl.cs"
click node_timelineevents "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/Controls/TimeLineControl/EventArgs.cs"
click node_effects "https://github.com/vixenlights/vixen/tree/master/src/Vixen.Modules/Effect"
click node_text_effect "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Modules/Effect/Text/Text.cs"
click node_sequence "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Sys/Execution.cs"
click node_sequence_state "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Sys/State/Execution/ExecutionStateEngine.cs"
click node_system "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Sys/VixenSystem.cs"
click node_dataflow "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Data/Flow/IDataFlowComponent.cs"
click node_output "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Sys/Output/OutputController.cs"
click node_outputvalue "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Sys/Output/Output.cs"
click node_controller_model "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Modules/App/WebServer/Model/Controller.cs"
click node_livepreview "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Modules/App/LivePreview/LivePreviewService.cs"
click node_previewmanager "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Sys/Managers/PreviewManager.cs"
click node_audio "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/AudioPlayer/AudioOutputManager.cs"
click node_export "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Modules/App/ExportWizard/BulkExportControllersStage.cs"
click node_webserver "https://github.com/vixenlights/vixen/tree/master/src/Vixen.Modules/App/WebServer/Controllers"
click node_nshape "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/NShape/DiagramSetController.cs"
click node_messagebox "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/Controls/MessageBoxForm.cs"
click node_theme "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/Controls/Theme/ThemeUpdateControls.cs"
click node_collections "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/NShape/Collections.cs"
click node_appservices "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Services/ApplicationServices.cs"
click node_location "https://github.com/vixenlights/vixen/blob/master/src/Vixen.Modules/App/Curves/ZedGraph/Location.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_vixenapp,node_setup,node_controllerui toneBlue
class node_timeline toneAmber
class node_sequence,node_sequence_state,node_system,node_dataflow,node_output,node_outputvalue,node_previewmanager,node_appservices toneMint
class node_effects,node_text_effect,node_controller_model,node_livepreview,node_export,node_webserver,node_location toneRose
class node_elementtree,node_timelineevents,node_audio,node_nshape,node_messagebox,node_theme,node_collections,node_showmaker toneIndigo
```

## Components

### Application and setup

- [Vixen application](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Application/VixenApplication.cs): `src/Vixen.Application/VixenApplication.cs`
- [Display and patch setup](https://github.com/vixenlights/vixen/tree/master/src/Vixen.Application/Setup): `src/Vixen.Application/Setup`
- [Controller management UI](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Application/Setup/SetupControllersSimple.cs): `src/Vixen.Application/Setup/SetupControllersSimple.cs`

### Show authoring

- [Timeline editing](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/Controls/TimeLineControl/TimelineControl.cs): `src/Vixen.Common/Controls/TimeLineControl/TimelineControl.cs`

### Execution and outputs

- [Sequence runtime](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Sys/Execution.cs): `src/Vixen.Core/Sys/Execution.cs`
- [Execution state machine](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Sys/State/Execution/ExecutionStateEngine.cs): `src/Vixen.Core/Sys/State/Execution/ExecutionStateEngine.cs`
- [System services and lifecycle](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Sys/VixenSystem.cs): `src/Vixen.Core/Sys/VixenSystem.cs`
- [Data-flow framework](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Data/Flow/IDataFlowComponent.cs): `src/Vixen.Core/Data/Flow/IDataFlowComponent.cs`
- [Controller output mapping](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Sys/Output/OutputController.cs): `src/Vixen.Core/Sys/Output/OutputController.cs`
- [Output state reference](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Sys/Output/Output.cs): `src/Vixen.Core/Sys/Output/Output.cs`
- [Preview device manager](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Sys/Managers/PreviewManager.cs): `src/Vixen.Core/Sys/Managers/PreviewManager.cs`
- [Application services](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Core/Services/ApplicationServices.cs): `src/Vixen.Core/Services/ApplicationServices.cs`

### Modules and preview

- [Effect modules](https://github.com/vixenlights/vixen/tree/master/src/Vixen.Modules/Effect): `src/Vixen.Modules/Effect`
- [Text effect](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Modules/Effect/Text/Text.cs): `src/Vixen.Modules/Effect/Text/Text.cs`
- [Controller model](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Modules/App/WebServer/Model/Controller.cs): `src/Vixen.Modules/App/WebServer/Model/Controller.cs`
- [Live preview service](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Modules/App/LivePreview/LivePreviewService.cs): `src/Vixen.Modules/App/LivePreview/LivePreviewService.cs`
- [Controller export](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Modules/App/ExportWizard/BulkExportControllersStage.cs): `src/Vixen.Modules/App/ExportWizard/BulkExportControllersStage.cs`
- [Web server controllers](https://github.com/vixenlights/vixen/tree/master/src/Vixen.Modules/App/WebServer/Controllers): `src/Vixen.Modules/App/WebServer/Controllers`
- [Curve location support](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Modules/App/Curves/ZedGraph/Location.cs): `src/Vixen.Modules/App/Curves/ZedGraph/Location.cs`

### Shared components

- [Element and controller trees](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/Controls/ControllerTree.cs): `src/Vixen.Common/Controls/ControllerTree.cs`
- [Timeline edit events](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/Controls/TimeLineControl/EventArgs.cs): `src/Vixen.Common/Controls/TimeLineControl/EventArgs.cs`
- [Audio playback](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/AudioPlayer/AudioOutputManager.cs): `src/Vixen.Common/AudioPlayer/AudioOutputManager.cs`
- [Diagram editing framework](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/NShape/DiagramSetController.cs): `src/Vixen.Common/NShape/DiagramSetController.cs`
- [Common UI dialogs](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/Controls/MessageBoxForm.cs): `src/Vixen.Common/Controls/MessageBoxForm.cs`
- [Control theming](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/Controls/Theme/ThemeUpdateControls.cs): `src/Vixen.Common/Controls/Theme/ThemeUpdateControls.cs`
- [Shared collections](https://github.com/vixenlights/vixen/blob/master/src/Vixen.Common/NShape/Collections.cs): `src/Vixen.Common/NShape/Collections.cs`

### Other components

- **Show creator**

## Connections

- Show creator → Vixen application: authors and runs
- Vixen application → Display and patch setup: configures show (evidence: `src/Vixen.Application/VixenApplication.cs`)
- Display and patch setup → Controller management UI: manages controllers (evidence: `src/Vixen.Application/Setup/SetupControllersSimple.cs`)
- Controller management UI → Element and controller trees: uses controller tree (evidence: `src/Vixen.Application/Setup/SetupControllersSimple.cs`)
- Display and patch setup → Timeline editing: supports sequencing
- Timeline editing → Timeline edit events: raises edit events (evidence: `src/Vixen.Common/Controls/TimeLineControl/EventArgs.cs`)
- Timeline editing → Effect modules: sequences effects
- Effect modules → Text effect: includes effect (evidence: `src/Vixen.Modules/Effect/Text/Text.cs`)
- Vixen application → Sequence runtime: runs show (evidence: `src/Vixen.Application/VixenApplication.cs`)
- Sequence runtime → Execution state machine: controls run state (evidence: `src/Vixen.Core/Sys/Execution.cs`)
- Sequence runtime → System services and lifecycle: uses system contexts (evidence: `src/Vixen.Core/Sys/Execution.cs`)
- System services and lifecycle → Data-flow framework: initializes data flow (evidence: `src/Vixen.Core/Sys/VixenSystem.cs`)
- Controller output mapping → Data-flow framework: registers adapters (evidence: `src/Vixen.Core/Sys/Output/OutputController.cs`)
- Controller output mapping → Output state reference: manages outputs (evidence: `src/Vixen.Core/Sys/Output/OutputController.cs`)
- Output state reference → Data-flow framework: reads output state (evidence: `src/Vixen.Core/Sys/Output/Output.cs`)
- Controller management UI → Controller model: represents controllers (evidence: `src/Vixen.Application/Setup/SetupControllersSimple.cs`)
- Live preview service → System services and lifecycle: resolves elements (evidence: `src/Vixen.Modules/App/LivePreview/LivePreviewService.cs`)
- Live preview service → Effect modules: creates preview effects (evidence: `src/Vixen.Modules/App/LivePreview/LivePreviewService.cs`)
- Preview device manager → System services and lifecycle: removes module data (evidence: `src/Vixen.Core/Sys/Managers/PreviewManager.cs`)
- Sequence runtime → Audio playback: syncs to music
- Vixen application → Controller export: exports controllers
- Vixen application → Web server controllers: offers modular features
- Display and patch setup → Diagram editing framework: uses graphical patching
- Vixen application → Application services: uses application services (evidence: `src/Vixen.Application/VixenApplication.cs`)
