conformal_component

Module parameters

Source
Expand description

Code related to the parameters of a processor.

A processor has a number of parameters that can be changed over time.

The parameters state is managed by Conformal, with changes ultimately coming from either the UI or the hosting application. The parameters form the “logical interface” of the processor.

Each parameter is one of the following types:

  • Numeric: A numeric value that can vary within a range of possible values.
  • Enum: An value that can take one of a discrete set of named values.
  • Switch: A value that can be either on or off.

Note that future versions may add more types of parameters!

Components tell Conformal about which parameters exist in their crate::Component::parameter_infos method.

Conformal will then provide the current state to the processor during processing, either crate::synth::Synth::process or crate::effect::Effect::process.

Note that conformal may also change parameters outside of processing and call the crate::synth::Synth::handle_events or crate::effect::Effect::handle_parameters methods, Components can update any internal state in these methods.

Macros§

  • Utility to get a per-sample iterator including the state of multiple parameters.

Structs§

Enums§

Constants§

  • Reserved unique id prefix for internal parameters. No component should have any parameters with unique ids that start with this prefix.

Traits§

  • Represents the state of several parameters across a buffer.
  • Represents a snapshot of all valid parameters at a given point in time.

Functions§

Type Aliases§