pub struct SpectralGate<T: Transcendental, const BUF_SIZE: usize> { /* private fields */ }Expand description
Spectral gate effect using overlap-add FFT processing.
§Type parameters
T— sample type (f32orf64)BUF_SIZE— processing block size in samples
Implementations§
Source§impl<T: Transcendental, const BUF_SIZE: usize> SpectralGate<T, BUF_SIZE>
impl<T: Transcendental, const BUF_SIZE: usize> SpectralGate<T, BUF_SIZE>
Sourcepub fn set_threshold(&mut self, threshold: T)
pub fn set_threshold(&mut self, threshold: T)
Set the gate threshold. Bins with magnitude below this are attenuated.
Trait Implementations§
Source§impl<T: Transcendental, const BUF_SIZE: usize> Algorithm<T> for SpectralGate<T, BUF_SIZE>
impl<T: Transcendental, const BUF_SIZE: usize> Algorithm<T> for SpectralGate<T, BUF_SIZE>
Source§fn process(
&mut self,
input: Option<&[T]>,
output: &mut [T],
) -> ProcessResult<()>
fn process( &mut self, input: Option<&[T]>, output: &mut [T], ) -> ProcessResult<()>
Process one block of signal. 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, const BUF_SIZE: usize> Default for SpectralGate<T, BUF_SIZE>
impl<T: Transcendental, const BUF_SIZE: usize> Default for SpectralGate<T, BUF_SIZE>
Auto Trait Implementations§
impl<T, const BUF_SIZE: usize> Freeze for SpectralGate<T, BUF_SIZE>where
T: Freeze,
impl<T, const BUF_SIZE: usize> RefUnwindSafe for SpectralGate<T, BUF_SIZE>where
T: RefUnwindSafe,
impl<T, const BUF_SIZE: usize> Send for SpectralGate<T, BUF_SIZE>
impl<T, const BUF_SIZE: usize> Sync for SpectralGate<T, BUF_SIZE>
impl<T, const BUF_SIZE: usize> Unpin for SpectralGate<T, BUF_SIZE>where
T: Unpin,
impl<T, const BUF_SIZE: usize> UnsafeUnpin for SpectralGate<T, BUF_SIZE>where
T: UnsafeUnpin,
impl<T, const BUF_SIZE: usize> UnwindSafe for SpectralGate<T, BUF_SIZE>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