Build and contribute
freesp16 is written in C++20 with JUCE and CMake. The same code builds for the hardware (ARM, cross-compiled in a Docker toolchain) and for the Linux desktop.
Requirements
Section titled “Requirements”- CMake 3.25 or newer, Ninja, Python 3, a C++20 compiler (GCC or Clang)
- Docker, for the hardware build
- For the desktop build:
libasound2-dev libx11-dev libegl-dev libgles-dev(andxvfbfor the headless checks)
-
Get the source with its JUCE submodule:
Terminal window git clone https://github.com/freesp16/freesp16.gitcd freesp16git submodule update --init --depth 1 -
Build and test the desktop app:
Terminal window cmake --preset host-fastcmake --build --preset host-fast -j8ctest --preset host-fast -j8Then run
build/host-fast/bin/freesp16. -
Build the hardware binary in the toolchain container:
Terminal window scripts/build-armel.shThe binary lands in
out/armel/. -
Run the end-to-end checks headlessly (Xvfb, scripted input, audio rendered to a file):
Terminal window scripts/host-smoke.sh
ci/run-local.sh runs the same stages as CI: lint, host build and tests, golden audio tests, the ARM build, the glibc
compatibility check and packaging.
How the code is organised
Section titled “How the code is organised”| Folder | What’s in it |
|---|---|
src/core |
Data model, commands, undo |
src/engine |
Real-time audio engine, voices, effects, sequencer |
src/services |
Library, projects, rendering |
src/io |
Controllers, MIDI, scripted input |
src/ui |
Screens, widgets and the UI framework |
src/platform |
Hardware-specific code: imx6 (the instrument), linux (desktop), host (headless) |
tests/ |
Unit, golden and end-to-end tests |
Modules register themselves, so new screens, effects and controllers don’t require editing shared files. CI enforces the dependency rules between modules and the real-time rules of the audio thread.
Contributing
Section titled “Contributing”- Bugs and ideas: open an issue. For bugs, include the freesp16 version, hardware or Linux, and how to reproduce it.
- Talk first: for bigger changes, or to ask how something works, join the Discord server.
- Pull requests: small, focused changes with tests are easiest to review. Run
ci/run-local.sh lint hostbefore you push. - Performance matters: the audio engine runs on a Cortex-A9. Keep allocation, locks and I/O out of the audio
thread;
tools/rt-lint.pychecks this.
By contributing, you agree that your contribution is licensed under the project’s licence, GPL-3.0-or-later.
freesp16 is free software: GPL-3.0-or-later (JUCE: AGPLv3). It is an independent project, not affiliated with, endorsed by or sponsored by Pioneer DJ or AlphaTheta. TORAIZ and SP-16 are trademarks of their owners and are used here only to describe the hardware the software runs on.