Repository navigation
First working version of ToneDriver with SDL2 implementation
Pre-release
Pre-release
🎵 ToneDriver v0.1
This commit completes the first working version of the cross-platform tone generation system.
Core Features:
- Defined the abstract
ToneDriverinterface for audio tone synthesis - Implemented
ToneDriverSDL2using SDL2 with support for:- Frequency playback (continuous or timed)
- Note and octave-based playback
- Chords (via arpeggios)
- Adjustable amplitude
- Basic validation for note ranges
- Generated square wave audio output using SDL audio callbacks
- Added blocking delay support for rests and duration-based playback
Examples:
test-tone.cpp: Basic tone output testtest-frequencies.cpp: Frequency sweep across the spectrumprecomputed-frequencies.cpp: Basic tone output without computing frequenciesmajor-scale.cpp: Plays 12 major scales across multiple octaves
Other Improvements:
- Added comprehensive Doxygen documentation for all classes and functions
Known Limitations:
- Uses blocking
SDL_Delay()for timing; will be replaced with non-blocking timers in a future update
Next Steps:
- Replace blocking delays with
SDL_AddTimeror threading
Closes milestone: v0.1