pub struct TimbreTransfer {
pub amount: f32,
/* private fields */
}Expand description
Applies spectral envelope transfer in real time using overlap-add.
Fields§
§amount: f32Transfer amount: 0.0 = no transfer, 1.0 = full transfer.
Implementations§
Source§impl TimbreTransfer
impl TimbreTransfer
pub fn new(fft_size: usize) -> Self
Sourcepub fn set_target(&mut self, envelope: SpectralEnvelope)
pub fn set_target(&mut self, envelope: SpectralEnvelope)
Set the target spectral envelope.
Sourcepub fn clear_target(&mut self)
pub fn clear_target(&mut self)
Clear the target (pass-through mode).
Sourcepub fn process_block(&mut self, input: &[f32]) -> Vec<f32>
pub fn process_block(&mut self, input: &[f32]) -> Vec<f32>
Process a block of audio samples. Returns the processed output (same length as input).
Auto Trait Implementations§
impl Freeze for TimbreTransfer
impl !RefUnwindSafe for TimbreTransfer
impl Send for TimbreTransfer
impl Sync for TimbreTransfer
impl Unpin for TimbreTransfer
impl UnsafeUnpin for TimbreTransfer
impl !UnwindSafe for TimbreTransfer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more