How cynthefer/nelva works
Nelva is a minimal Linux DAW: the user launches it with an optional WAV, controls playback and tempo in an X11 window, and hears audio through ALSA. The visible runtime path runs from main through the UI and audio engine; the engine loads WAV samples, reads shared transport state, and renders blocks to the device. The README also lists a sine test voice, master meter/gain, and JSON project save/load, but their implementation is not established by the excerpts. The graph preserves these documented capabilities without asserting unshown connections.
Main entry points: main.c Application entry · engine.c Audio engine · window.c X11 window · device.c ALSA device
Components 15
Application UI
- Application entry
src/main.c - X11 window
src/ui/window.c - Bitmap font
src/ui/font.c
Audio runtime
- Audio engine
src/audio/engine.c - Playback transport
src/audio/transport.c - ALSA device
src/audio/device.c
Media and DSP
- WAV loader
src/io/wav.c - Audio sample
include/nelva/model/sample.h - Sine oscillator
src/dsp/osc.c - JSON project save/load
Core services
- Logging
src/core/log.c - Clock service
src/core/time.c - Error results
src/core/result.c
Other components
- DAW user
- ALSA audio
Connections 19
- DAW user → Application entry: launches
README.md - Application entry → Audio engine: creates
src/main.c - Application entry → Audio engine: loads WAV
src/main.c - Application entry → Playback transport: gets transport
src/main.c - Application entry → X11 window: runs UI
src/main.c - X11 window → Application entry: dispatches callbacks
src/ui/window.c - Application entry → Playback transport: controls playback
src/main.c - Application entry → X11 window: draws controls
src/main.c - X11 window → Bitmap font: renders text
src/ui/window.c - Audio engine → Playback transport: advances state
src/audio/engine.c - Audio engine → ALSA device: starts callback
src/audio/engine.c - ALSA device → Audio engine: requests audio
src/audio/engine.c - Audio engine → WAV loader: loads sample
src/audio/engine.c - WAV loader → Audio sample: fills sample
- ALSA device → ALSA audio: outputs audio
- Audio engine → Sine oscillator: uses voice
- DAW user → JSON project save/load: saves or loads
README.md - Audio engine → Logging: logs status
src/audio/engine.c - X11 window → Clock service: reads clock
src/ui/window.c