pub struct EnvelopeGenerator<T: Transcendental> { /* private fields */ }Expand description
Генератор огибающей ADSR
Implementations§
Source§impl<T: Transcendental> EnvelopeGenerator<T>
impl<T: Transcendental> EnvelopeGenerator<T>
Trait Implementations§
Source§impl<T: Transcendental> Algorithm<T> for EnvelopeGenerator<T>
impl<T: Transcendental> Algorithm<T> for EnvelopeGenerator<T>
Source§fn process(
&mut self,
input: Option<&[T]>,
output: &mut [T],
_ctx: &ActionContext<'_>,
) -> ProcessResult<()>
fn process( &mut self, input: Option<&[T]>, output: &mut [T], _ctx: &ActionContext<'_>, ) -> ProcessResult<()>
Process one block of audio. Read more
Source§fn metadata(&self) -> AlgorithmMetadata
fn metadata(&self) -> AlgorithmMetadata
Descriptive metadata (defaults to empty).
Source§fn apply_command(&mut self, _value: T)
fn apply_command(&mut self, _value: T)
Receive a real-time command value from the control path. Read more
Source§impl<T: Transcendental> Generator<T> for EnvelopeGenerator<T>
impl<T: Transcendental> Generator<T> for EnvelopeGenerator<T>
Source§fn set_frequency(&mut self, _freq: f32)
fn set_frequency(&mut self, _freq: f32)
Установить частоту
Source§fn set_amplitude(&mut self, _amp: T)
fn set_amplitude(&mut self, _amp: T)
Установить амплитуду
Source§fn reset_phase(&mut self)
fn reset_phase(&mut self)
Сбросить фазу в 0
Auto Trait Implementations§
impl<T> Freeze for EnvelopeGenerator<T>where
T: Freeze,
impl<T> RefUnwindSafe for EnvelopeGenerator<T>where
T: RefUnwindSafe,
impl<T> Send for EnvelopeGenerator<T>
impl<T> Sync for EnvelopeGenerator<T>
impl<T> Unpin for EnvelopeGenerator<T>where
T: Unpin,
impl<T> UnsafeUnpin for EnvelopeGenerator<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for EnvelopeGenerator<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more