# openmixerproject/openmixercontrol architecture

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

- Interactive diagram: https://gitdiagram.com/openmixerproject/openmixercontrol
- Repository: https://github.com/openmixerproject/openmixercontrol

## Overview

OpenMixerControl is console software for OpenX32 and OpenWING digital mixers. The principal operator workflow is to change mixer and routing settings through the console interface or control surface, then have the console apply those changes and show feedback. The repository also includes audio/DSP and FPGA-related modules, configuration, and control-protocol clients/servers. The graph preserves these documented product areas, but sampled evidence is limited: most runtime connections beyond the indexed imports and excerpts are not asserted.

Main entry points: [`src/surface.h`](https://github.com/openmixerproject/openmixercontrol/blob/development/src/surface.h) (Surface interface), [`src/base.h`](https://github.com/openmixerproject/openmixercontrol/blob/development/src/base.h) (Shared runtime base), [`src/ctrl-client.cpp`](https://github.com/openmixerproject/openmixercontrol/blob/development/src/ctrl-client.cpp) (Control client), [`src/eez/screens.c`](https://github.com/openmixerproject/openmixercontrol/blob/development/src/eez/screens.c) (Generated UI screens)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_operator["Operator interface"]
  node_ui["Generated UI screens<br/>[screens.c]"]
  node_ui_api["UI screen declarations<br/>[screens.h]"]
  node_page["Console pages<br/>[page.cpp]"]
  node_page_defs["Page definitions<br/>[page.h]"]
  node_surface["Control surface<br/>[surface.cpp]"]
  node_surface_api["Surface interface<br/>[surface.h]"]
  node_xm32["XM32 surface driver"]
  node_wing["WING surface driver"]
end

subgraph group_mixer["Mixer control"]
  node_mixer["Mixer state and operations<br/>[mixer.cpp]"]
  node_parameters["Mixer parameters<br/>[mixerparameter.cpp]"]
  node_configuration["Mixer configuration<br/>[config.h]"]
end

subgraph group_audio["Audio processing"]
  node_dsp["DSP processing<br/>[dsp1.cpp]"]
  node_effects["Audio effects<br/>[fx-base.cpp]"]
  node_fpga["FPGA interface<br/>[fpga.cpp]"]
  node_card["Audio card<br/>[card.cpp]"]
end

subgraph group_platform["Console platform"]
  node_entry["Application startup<br/>[main.cpp]"]
  node_base["Shared runtime base<br/>[base.h]"]
  node_state["Runtime state<br/>[state.h]"]
end

subgraph group_links["Control links"]
  node_control_client["Control client<br/>[ctrl-client.cpp]"]
  node_control_server["Control server<br/>[ctrl-server.cpp]"]
  node_osc_client["OSC client<br/>[osc-client.cpp]"]
  node_osc_server["OSC server<br/>[osc-server.cpp]"]
  node_artnet["Art-Net support<br/>[artnet.cpp]"]
end

node_operator(("Console operator"))

node_operator -->|"starts console"| node_entry
node_entry -->|"initializes UI"| node_ui
node_ui -->|"uses declarations"| node_ui_api
node_control_client -->|"references pages"| node_page
node_control_client -->|"reads configuration"| node_configuration
node_page_defs -->|"references mixer"| node_mixer
node_surface_api -->|"selects driver"| node_xm32
node_surface_api -->|"selects driver"| node_wing
node_base -->|"holds reference"| node_configuration
node_base -->|"holds reference"| node_state

click node_entry "https://github.com/openmixerproject/openmixercontrol/blob/development/src/main.cpp"
click node_ui "https://github.com/openmixerproject/openmixercontrol/blob/development/src/eez/screens.c"
click node_ui_api "https://github.com/openmixerproject/openmixercontrol/blob/development/src/eez/screens.h"
click node_page "https://github.com/openmixerproject/openmixercontrol/blob/development/src/page.cpp"
click node_page_defs "https://github.com/openmixerproject/openmixercontrol/blob/development/src/page.h"
click node_surface "https://github.com/openmixerproject/openmixercontrol/blob/development/src/surface.cpp"
click node_surface_api "https://github.com/openmixerproject/openmixercontrol/blob/development/src/surface.h"
click node_xm32 "https://github.com/openmixerproject/openmixercontrol/blob/development/src/surface-controller-xm32.cpp"
click node_wing "https://github.com/openmixerproject/openmixercontrol/blob/development/src/surface-controller-wing.cpp"
click node_mixer "https://github.com/openmixerproject/openmixercontrol/blob/development/src/mixer.cpp"
click node_parameters "https://github.com/openmixerproject/openmixercontrol/blob/development/src/mixerparameter.cpp"
click node_configuration "https://github.com/openmixerproject/openmixercontrol/blob/development/src/config.h"
click node_dsp "https://github.com/openmixerproject/openmixercontrol/blob/development/src/dsp1.cpp"
click node_effects "https://github.com/openmixerproject/openmixercontrol/blob/development/src/fx-base.cpp"
click node_fpga "https://github.com/openmixerproject/openmixercontrol/blob/development/src/fpga.cpp"
click node_card "https://github.com/openmixerproject/openmixercontrol/blob/development/src/card.cpp"
click node_control_client "https://github.com/openmixerproject/openmixercontrol/blob/development/src/ctrl-client.cpp"
click node_control_server "https://github.com/openmixerproject/openmixercontrol/blob/development/src/ctrl-server.cpp"
click node_osc_client "https://github.com/openmixerproject/openmixercontrol/blob/development/src/osc-client.cpp"
click node_osc_server "https://github.com/openmixerproject/openmixercontrol/blob/development/src/osc-server.cpp"
click node_artnet "https://github.com/openmixerproject/openmixercontrol/blob/development/src/artnet.cpp"
click node_base "https://github.com/openmixerproject/openmixercontrol/blob/development/src/base.h"
click node_state "https://github.com/openmixerproject/openmixercontrol/blob/development/src/state.h"

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_ui,node_ui_api,node_page,node_page_defs,node_surface,node_surface_api,node_xm32,node_wing toneBlue
class node_mixer,node_parameters,node_configuration toneAmber
class node_dsp,node_effects,node_fpga,node_card toneMint
class node_entry,node_base,node_state toneRose
class node_control_client,node_control_server,node_osc_client,node_osc_server,node_artnet,node_operator toneIndigo
```

## Components

### Operator interface

- [Generated UI screens](https://github.com/openmixerproject/openmixercontrol/blob/development/src/eez/screens.c): `src/eez/screens.c`
- [UI screen declarations](https://github.com/openmixerproject/openmixercontrol/blob/development/src/eez/screens.h): `src/eez/screens.h`
- [Console pages](https://github.com/openmixerproject/openmixercontrol/blob/development/src/page.cpp): `src/page.cpp`
- [Page definitions](https://github.com/openmixerproject/openmixercontrol/blob/development/src/page.h): `src/page.h`
- [Control surface](https://github.com/openmixerproject/openmixercontrol/blob/development/src/surface.cpp): `src/surface.cpp`
- [Surface interface](https://github.com/openmixerproject/openmixercontrol/blob/development/src/surface.h): `src/surface.h`
- [XM32 surface driver](https://github.com/openmixerproject/openmixercontrol/blob/development/src/surface-controller-xm32.cpp): `src/surface-controller-xm32.cpp`
- [WING surface driver](https://github.com/openmixerproject/openmixercontrol/blob/development/src/surface-controller-wing.cpp): `src/surface-controller-wing.cpp`

### Mixer control

- [Mixer state and operations](https://github.com/openmixerproject/openmixercontrol/blob/development/src/mixer.cpp): `src/mixer.cpp`
- [Mixer parameters](https://github.com/openmixerproject/openmixercontrol/blob/development/src/mixerparameter.cpp): `src/mixerparameter.cpp`
- [Mixer configuration](https://github.com/openmixerproject/openmixercontrol/blob/development/src/config.h): `src/config.h`

### Audio processing

- [DSP processing](https://github.com/openmixerproject/openmixercontrol/blob/development/src/dsp1.cpp): `src/dsp1.cpp`
- [Audio effects](https://github.com/openmixerproject/openmixercontrol/blob/development/src/fx-base.cpp): `src/fx-base.cpp`
- [FPGA interface](https://github.com/openmixerproject/openmixercontrol/blob/development/src/fpga.cpp): `src/fpga.cpp`
- [Audio card](https://github.com/openmixerproject/openmixercontrol/blob/development/src/card.cpp): `src/card.cpp`

### Console platform

- [Application startup](https://github.com/openmixerproject/openmixercontrol/blob/development/src/main.cpp): `src/main.cpp`
- [Shared runtime base](https://github.com/openmixerproject/openmixercontrol/blob/development/src/base.h): `src/base.h`
- [Runtime state](https://github.com/openmixerproject/openmixercontrol/blob/development/src/state.h): `src/state.h`

### Control links

- [Control client](https://github.com/openmixerproject/openmixercontrol/blob/development/src/ctrl-client.cpp): `src/ctrl-client.cpp`
- [Control server](https://github.com/openmixerproject/openmixercontrol/blob/development/src/ctrl-server.cpp): `src/ctrl-server.cpp`
- [OSC client](https://github.com/openmixerproject/openmixercontrol/blob/development/src/osc-client.cpp): `src/osc-client.cpp`
- [OSC server](https://github.com/openmixerproject/openmixercontrol/blob/development/src/osc-server.cpp): `src/osc-server.cpp`
- [Art-Net support](https://github.com/openmixerproject/openmixercontrol/blob/development/src/artnet.cpp): `src/artnet.cpp`

### Other components

- **Console operator**

## Connections

- Console operator → Application startup: starts console (evidence: `README.md`)
- Application startup → Generated UI screens: initializes UI (evidence: `src/main.cpp`)
- Generated UI screens → UI screen declarations: uses declarations (evidence: `src/eez/screens.c`)
- Control client → Console pages: references pages (evidence: `src/ctrl-client.cpp`)
- Control client → Mixer configuration: reads configuration (evidence: `src/ctrl-client.cpp`)
- Page definitions → Mixer state and operations: references mixer (evidence: `src/page.h`)
- Surface interface → XM32 surface driver: selects driver (evidence: `src/surface.h`)
- Surface interface → WING surface driver: selects driver (evidence: `src/surface.h`)
- Shared runtime base → Mixer configuration: holds reference (evidence: `src/base.h`)
- Shared runtime base → Runtime state: holds reference (evidence: `src/base.h`)
