Plugins
Plugins in microseconds
LOPS: an audio block goes in, a block comes out, and the cost is measured on the Pi.
See a whole plugin
The gain plugin is the smallest complete example: plugins/gain. The IR and NAM plugins sit next to it.
Understand the format
The module is an ELF loaded by the host. ABI version 1 is in LOPS.md (docs are in Portuguese) and lops/include/lops.h. NEON and floating point are fine in user space. NAM and IR (v2) accept blocks of 16, 32, 64 and 128 samples as a plugin capability; the measured LeanOS audio path uses blocks of one USB microframe (125 µs).
Write your first plugin
- Clone the repository and open
plugins/gainas a template. - Build with
.\scripts\build-plugins.ps1: it makes the.plgfiles inout\plugins. - Test on the PC with the tests in the plugin folder.
- Take it to the card:
sd-stage.ps1copies the.plgfiles to/plugins; play it withnambenchorrig.
Go deeper
- LOPS.md: the specification
- PLUGINS.md: plan and architecture
- RIG.md: how the rig plays plugins
Case study
Not done yet
- A complete step-by-step tutorial.
- Measurement of the gain plugin in the full cycle (in progress).
- The
lops.hheader as a package.
Write your first plugin
Start from the gain plugin and measure yours on the Pi.
Open the gain pluginSee also
Guitar rig on a micro SD
1.241 ms round trip (indication), no DSP chain (Quantum ES 2, USB, loopback)
Build your rig →DevicesDedicated device, straight on the hardware
The /autostart file opens the program
Build a device →Real timeReal-time loop on a reserved core
3 to 6 µs of jitter within a run, in audio (Quantum ES 2)
See the measurements →KernelReadable kernel, boot to shell
Boot, 4 cores, SD, USB, audio and shell on the Pi 500
Read the kernel →PrivacyData only on the card
No telemetry; reports only if you send them
See what lives where →RustPi 500 drivers in Rust
Open source, Apache-2.0
Read the drivers →