Loading 3D model… large boards can take a moment.
A modular, real-time audio effects system for Raspberry Pi, developed in modern C++ with multithreading, low-latency processing, and unit-tested DSP effect chains.
The Real-Time Harmoniser is a standalone real-time embedded system designed to apply audio effects (like pitch-shifting and gain distortion) to incoming audio with minimal latency. The pedal is controllable via a hardware interface and written for the ENG5220: Real-Time Embedded Programming course.
Key Features:
+-----------+ +--------------+ +--------------------+
| Audio In | --> | Sampling | --> | DigitalSignalChain | --> Audio Out
+-----------+ +--------------+ +--------------------+
| Gain, Fuzz, Harmonizer ...
+--------------------+
Each audio sample flows through a configurable DSP chain loaded dynamically from a config file.
libsndfile1-dev, libasound2-dev, libgtest-dev, valgrindchmod +x code/init.sh code/build.sh
./code/init.sh # Installs dependencies and fetches submodules
./code/build.sh # Builds the pedal and test binaries
./code/run.sh # Runs the real-time pedal binary
./code/unit_test.sh # Runs unit tests with Valgrind
./code/clean_run.sh # Re-builds the project and runs
./code/clean_test.sh # Re-builds the project and runs the integration test
code/
├── src/ # All source files
│ ├── dsp/ # DSP chain and factory
│ ├── effects/ # Harmonizer, Gain, Fuzz etc.
│ ├── sampling/ # Sample and output modules
│ └── test/ # Functional and unit tests
├── assets/ # Input/output WAV files and configs
├── CMakeLists.txt # Project build configuration
├── run.sh # Launches the pedal binary
├── test.sh # Runs Valgrind test harness
└── init.sh # Dependency setup and submodule fetch
| Metric | Value |
|---|---|
| Latency (per sample) | < 3μs (tested on x86) |
| Realtime Factor | ~10x |
| CPU Usage | < 40% on RPi 4 |
| Memory Leaks | ❌ None beyond Alsa Standard (Valgrind verified) |
shred.local)| Criteria | Status |
|---|---|
| Multithreaded DSP | ✅ Lock-free atomic switching |
| Realtime sample-by-sample | ✅ Implemented in Harmonizer |
| Unit Testing | ✅ GTest + Valgrind |
| CI/CD Integration | ✅ GitHub Actions |
| Well-commented, structured code | ✅ Reviewed and documented |
| Pedal UI and Config | ✅ Completed |
MIT License. See LICENSE for details.
No comments yet. Be the first to ask about this board.