How kushview/element works
Element is a modular audio plugin host and graph-based live production environment. A user edits a session through the GUI, loads or scans plugins, constructs reusable audio/MIDI graphs, and starts transport; the engine renders the active graph through audio hardware while routing MIDI and external clock. Sessions persist as graph files. Scripting, plugin hosting, nested graphs, virtual instruments, and MIDI mapping are important secondary branches. Some UI-to-service wiring is inferred from documented APIs and paths because those callers were not sampled.
Main entry points: audioengine.cpp Audio Engine · engineservice.cpp Engine Service · sessionservice.cpp Session Service · mainwindow.cpp Element GUI
Components 21
User Interface
- Element GUI
src/ui/mainwindow.cpp - Graph Editor
src/ui/grapheditorcomponent.cpp - Plugin UI
src/ui/pluginmanagercomponent.cpp
Session Management
- Session Service
src/services/sessionservice.cpp - Session Model
src/session.cpp - Session Files
src/ui/sessiondocument.cpp
Graph Engine
- Engine Service
src/services/engineservice.cpp - Audio Engine
src/engine/audioengine.cpp - Graph Runtime
src/engine/graphmanager.cpp - Graph Builder
src/engine/graphbuilder.cpp - Node Factory
src/engine/nodefactory.cpp
Plugins And Scripts
- Plugin Manager
src/pluginmanager.cpp - Script Manager
src/scripting/scriptmanager.cpp - Plugin Nodes
src/pluginprocessor.cpp - Script Nodes
src/nodes/scriptnode.cpp
Device I/O
- Audio Devices
src/devicemanager.cpp - MIDI Engine
src/engine/midiengine.cpp
Other components
- User
- Audio Hardware
- MIDI Hardware
- DAW Host
Connections 22
- User → Element GUI: operates
- Element GUI → Session Service: manages sessions
- Element GUI → Graph Editor: opens editor
- Graph Editor → Engine Service: edits graphs
- Session Service → Session Files: reads and writes
- Session Service → Session Model: updates model
- Session Service → Engine Service: loads graphs
- Engine Service → Graph Builder: builds graph
- Engine Service → Graph Runtime: manages graphs
- Graph Builder → Node Factory: creates nodes
- Node Factory → Plugin Nodes: creates plugins
- Node Factory → Script Nodes: creates scripts
- Engine Service → Plugin Manager: loads plugins
- Plugin Manager → Plugin UI: lists plugins
- Script Manager → Script Nodes: provides scripts
- Graph Runtime → Audio Engine: renders graph
- Audio Devices → Audio Engine: configures devices
- Audio Engine → Audio Hardware: streams audio
- MIDI Hardware → MIDI Engine: delivers MIDI
- MIDI Engine → Audio Engine: processes MIDI
- Audio Engine → MIDI Hardware: outputs MIDI
- DAW Host → Audio Engine: hosts plugin