Module params

Module params 

Source
Expand description

Parameter system for audio plugins.

This module provides traits and types for declaring and managing plugin parameters in a format-agnostic way. Parameters use normalized values (0.0 to 1.0) for host communication, with conversion to/from plain values handled by the plugin.

§Thread Safety

The Parameters trait requires Send + Sync because parameters may be accessed from multiple threads:

  • Audio thread: reads parameter values during processing
  • UI thread: displays and modifies parameter values
  • Host thread: automation playback and recording

Use atomic types (e.g., AtomicU64 with to_bits/from_bits) for lock-free access.

Structs§

NoParams
Empty parameter collection for plugins with no parameters.
ParamFlags
Flags controlling parameter behavior.
ParamInfo
Metadata describing a single parameter.
UnitInfo
Information about a parameter group (VST3 Unit).

Constants§

ROOT_UNIT_ID
Root unit ID constant (parameters with no group).

Traits§

Parameters
Trait for plugin parameter collections.
Units
Trait for querying VST3 unit hierarchy.

Type Aliases§

UnitId
VST3 Unit ID type.