Este site também está em português.Ler em português

Plugins

Plugins in microseconds

LOPS: an audio block goes in, a block comes out, and the cost is measured on the Pi.

Write a plugin

~68 µsNAM Full per 64-sample block; NAM Lite ~24 µs; 4,000-tap cabinet IR ~10 µs; on the Pi 500, NAM A2
600 blockswith output bit-identical to the native code
+0.9%overhead of running NAM as a plugin, 1 chain, on the Pi 500

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

  1. Clone the repository and open plugins/gain as a template.
  2. Build with .\scripts\build-plugins.ps1: it makes the .plg files in out\plugins.
  3. Test on the PC with the tests in the plugin folder.
  4. Take it to the card: sd-stage.ps1 copies the .plg files to /plugins; play it with nambench or rig.

Go deeper

Case study

PreSonus Quantum ES 2: 1.241 ms round trip (192 kHz)

Not done yet

Write your first plugin

Start from the gain plugin and measure yours on the Pi.

Open the gain plugin

See also