Search guides and the APICtrl K
  1. API reference
  2. Formats and wrappers

lv2_ports.h

The LV2 port map, in one place.

#include <sonore/lv2_ports.h>
On this page

Design notes

An LV2 UI is a separate module from the plugin and receives port EVENTS by index. It therefore has to agree with the plugin about which index is what -- and until this file existed it did not have to, because it only ever looked at ports 0..numParams-1 and those happen to come first.

The first port that broke that assumption was a meter. lv2_wrapper.h includes lv2_ui.h, so the UI could not see the wrapper's numbering even though it depended on it; the numbering has moved HERE, where both include it and neither can drift from the other.

Everything below is derived from kDesc and the DSP's traits. No state, no ordering hazard, and one answer to "which port is that".

Functions 31

↑↓ to move↵ to openEvery public name in the headers, and every guide