Module product
Expand description
Product and parameter descriptions shared by every export format.
Structs§
- Auxiliary
Bus - An audio bus in addition to the main bus, such as a sidechain input or an extra output of a multi-output instrument.
- Editor
- A web editor: one HTML page and its size in logical pixels.
- Editor
Asset - A file the editor page loads by relative URL, embedded in the binary, for
example
EditorAsset::new("img/knob.png", include_bytes!("../editor/img/knob.png")). - Note
Ports - Note and MIDI ports the product exposes.
- Parameter
- One parameter, identified permanently by its key.
- Product
- Everything formats need to describe one plug-in.
- Resolved
Product - A validated product with resolved parameter IDs and format identities.
- State
Format - Format and version of the saved state, see
crate::state.
Enums§
- Category
- The host-facing role of a product.
- Parameter
Role - How a parameter behaves for hosts.
- Precision
- Processing precisions the product implements.
- Product
Error - Reasons a product description is rejected. Indices refer to declaration order.
Constants§
- MAXIMUM_
BUS_ NAME_ BYTES - Most bytes in an
AuxiliaryBusname. - MAXIMUM_
EDITOR_ ASSETS - Most editor assets per product.
- MAXIMUM_
EDITOR_ ASSETS_ TOTAL_ BYTES - Largest total size of a product’s editor assets (256 MiB).
- MAXIMUM_
EDITOR_ ASSET_ BYTES - Largest single editor asset (64 MiB).
- MAXIMUM_
EDITOR_ HTML_ BYTES - Largest accepted editor page.
- MAXIMUM_
KEY_ BYTES - Maximum length of a parameter key, matching the LV2 symbol limit used here.
- MAXIMUM_
PARAMETERS - Maximum parameters per product, matching the native table limit.
Functions§
- derive_
parameter_ id - Derive a parameter ID from its key: 32-bit FNV-1a with the top bit cleared, so every format can represent it. This derivation never changes.