Enum Bypass Policy
pub enum BypassPolicy {
Processor,
Crossfade {
milliseconds: f32,
},
Hard,
Frozen,
}Expand description
How the host bypass parameter (Parameter::bypass) is applied.
Every policy except BypassPolicy::Processor consumes the bypass
parameter: the processor never receives events for it, and
Product::resolve requires the product to declare one. The dry signal is
delayed by the processor’s latency (see the module documentation).
Variants§
Processor
The processor receives the bypass parameter like any other and implements bypass itself. The default.
Crossfade
The processor keeps running; the output crossfades linearly between the
processed signal and the dry input over the given time (greater than 0,
at most MAXIMUM_CROSSFADE_MS). Changes start at the event’s offset.
Auxiliary outputs fade to silence.
Hard
The processor keeps running; the output switches between the processed signal and the dry input at the event’s offset, without a ramp. Auxiliary outputs are silent while bypassed.
Frozen
While bypassed the processor is not run, so its history is frozen, and
the input, delayed by the processor’s latency, is copied to the output.
Without latency (and without a declared maximum) this needs no scratch
storage (AudioBuffer::pass_through). Parameter events still reach the
processor through a zero-frame block; notes and other events are
discarded. The switch happens on block boundaries, using the last bypass
value of the block. Auxiliary outputs are silent while bypassed.
Trait Implementations§
§impl Clone for BypassPolicy
impl Clone for BypassPolicy
§fn clone(&self) -> BypassPolicy
fn clone(&self) -> BypassPolicy
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more