pub struct EnvelopeFollowerProcessor { /* private fields */ }
Expand description

An implementation of an envelope follower.

Implements audio_processor_traits::SimpleAudioProcessor. Can either use it for per-sample processing or wrap this with audio_processor_traits::simple_processor::BufferProcessor.

Example

use audio_processor_analysis::envelope_follower_processor::EnvelopeFollowerProcessor;
use audio_processor_traits::SimpleAudioProcessor;

let mut  envelope_follower = EnvelopeFollowerProcessor::default();
let _handle = envelope_follower.handle(); // can send to another thread

// Envelope follower implements `SimpleAudioProcessor`
envelope_follower.s_prepare(Default::default());
envelope_follower.s_process(1.0);

Implementations

Create a new EnvelopeFollowerProcessor with this attack and release times.

Get a reference to the basedrop::Shared state handle of this processor

Trait Implementations

Returns the “default value” for a type. Read more
Prepare for playback based on current audio settings
Process a single sample. If the input is mult-channel, will run for each channel by default. If the processor is multi-channel, implement s_process_frame instead. Read more
Process a multi-channel frame. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.