How yrotak/live-tune works
Live Tune is a real-time vocal-tuning audio plugin. An audio host supplies audio to the processor, which analyzes pitch, snaps it to the selected key and scale, computes correction, and shifts the audio; the editor exposes controls and pitch feedback. The graph separates the major audio-processing stages and the editor. Processor excerpts are partial, so internal call relationships not visible there are omitted; source-index references support only the stated module relationships.
Main entry points: PluginProcessor.cpp Audio processor · PluginEditor.cpp Plugin editor · PitchShifter.cpp PSOLA shifter · Scale.h Scale snapping
Components 11
Audio processing
- Audio processor
src/PluginProcessor.cpp - Pitch analysis
src/PluginProcessor.cpp - PSOLA shifter
src/PitchShifter.cpp
Pitch correction
- Scale snapping
src/Scale.h - Correction calculation
src/Corrector.h
Plugin interface
- Plugin editor
src/PluginEditor.cpp - Tuning controls
src/PluginEditor.cpp - Pitch display
src/PluginEditor.cpp - Plugin state
src/PluginProcessor.cpp
Epoch detection
- Epoch detection
src/EpochDetector.cpp
Other components
- Audio host
Connections 11
- Audio host → Audio processor: sends audio
src/PluginProcessor.cpp - Audio processor → Pitch analysis: queues analysis
src/PluginProcessor.cpp - Audio processor → Scale snapping: uses snapping
- Audio processor → Correction calculation: uses correction
- Audio processor → PSOLA shifter: uses shifting
- PSOLA shifter → Epoch detection: detects epochs
- Audio processor → Plugin editor: creates editor
src/PluginProcessor.cpp - Plugin editor → Tuning controls: configures
src/PluginEditor.cpp - Plugin editor → Audio processor: reads pitch
src/PluginEditor.cpp - Audio processor → Plugin state: saves state
src/PluginProcessor.cpp - Plugin editor → Pitch display: displays pitch
src/PluginEditor.cpp