How christoskonstantas/anasa works
ANASA is an experimental audio-rendering scheduler, not a DAW or audio host. Its principal workflow posts playback or timeline commands to an Engine; a scheduler classifies and prioritizes render work, workers render tiles, and accepted audio is published in timeline order for a simulated audio callback to consume. The product also supports FIFO and deadline-aware policies, edit/version cancellation, background admission, and an optional neural phrase-rendering adapter. The README documents the runtime relationships; some internal components are represented at their source directory because their implementations were not excerpted.
Main entry points: Scheduler.cpp Scheduler · Engine.cpp Engine lifecycle · RuntimeDemo.cpp Runtime demo · Executor.cpp Worker pool
Components 23
Engine and control
- Runtime demo
runtime-demo/RuntimeDemo.cpp - Engine lifecycle
src/engine/Engine.cpp - Command queue
src/utils/queues/SpscQueue.hpp
Scheduling and playback
- Scheduler
src/scheduler/Scheduler.cpp - Playback control
src/playback/PlaybackController.cpp - Background gate
src/playback/BackgroundRenderGate.cpp - Scheduling policies
src/scheduler/policies - Render cache
src/scheduler/RenderCache.cpp - Active render jobs
src/scheduler/ActiveRenderJobs.cpp - Timeline publisher
src/scheduler/TimelineAudioPublisher.cpp
Render execution
- Chunk versions
src/render/VersionTable.cpp - Worker pool
src/execution/Executor.cpp - Render task processor
src/execution/RenderTaskProcessor.cpp - Tile renderer
src/render/Renderer.cpp - Synthetic kernel
src/render/kernels/SyntheticRenderKernel.cpp
Audio output
- Ready audio queue
src/utils/queues/SpscQueue.hpp - Audio block processor
src/audio/AudioBlockProcessor.cpp - Device simulator
src/audio/simulator/AudioSimulator.cpp - WAV capture
apps/WaveWriter.hpp
Neural rendering
- Phrase tile adapter
src/render/PhraseTileRenderer.cpp - Phrase renderer API
src/render/IPhraseRenderer.hpp - OpenVPI backend
src/render/openvpi/OpenVpiRenderer.cpp
Other components
- Demo operator
Connections 30
- Demo operator → Runtime demo: runs scenarios
runtime-demo/RuntimeDemo.cpp - Runtime demo → Engine lifecycle: controls lifecycle
runtime-demo/RuntimeDemo.cpp - Engine lifecycle → Scheduler: constructs and starts
src/engine/Engine.cpp - Engine lifecycle → Worker pool: starts workers
src/engine/Engine.cpp - Engine lifecycle → Device simulator: starts simulator
src/engine/Engine.cpp - Engine lifecycle → Command queue: posts commands
README.md - Command queue → Scheduler: delivers commands
README.md - Scheduler → Playback control: updates play intent
- Scheduler → Background gate: checks admission
README.md - Scheduler → Scheduling policies: orders pending work
src/scheduler/Scheduler.cpp - Scheduler → Worker pool: submits render tasks
README.md - Worker pool → Render task processor: processes tasks
- Render task processor → Tile renderer: renders tiles
README.md - Tile renderer → Synthetic kernel: uses kernel
- Worker pool → Active render jobs: publishes completions
README.md - Scheduler → Active render jobs: collects completions
README.md - Scheduler → Render cache: stores accepted audio
README.md - Scheduler → Chunk versions: invalidates edits
README.md - Chunk versions → Tile renderer: checks cancellation
README.md - Scheduler → Timeline publisher: publishes timeline audio
README.md - Render cache → Timeline publisher: reads cached PCM
README.md - Timeline publisher → Ready audio queue: copies ordered blocks
README.md - Ready audio queue → Audio block processor: supplies audio blocks
README.md - Audio block processor → Device simulator: processes callbacks
- Device simulator → Runtime demo: provides captured audio
- Runtime demo → WAV capture: writes WAV capture
apps/WaveWriter.hpp - Runtime demo → Phrase tile adapter: selects neural mode
- Phrase tile adapter → Phrase renderer API: renders phrase
README.md - OpenVPI backend → Phrase renderer API: implements API
- Phrase tile adapter → Tile renderer: adapts tile path
README.md