pub struct ModalModel<T: Transcendental, const MAX_MODES: usize> { /* private fields */ }Expand description
Modal resonator — parallel resonant filter bank.
Pre-allocates MAX_MODES mode states at construction. The process()
method evaluates all active modes in parallel — RT-safe, no allocation.
Implementations§
Source§impl<T: Transcendental, const MAX_MODES: usize> ModalModel<T, MAX_MODES>
impl<T: Transcendental, const MAX_MODES: usize> ModalModel<T, MAX_MODES>
Trait Implementations§
Source§impl<T: Transcendental, const MAX_MODES: usize> Algorithm<T> for ModalModel<T, MAX_MODES>
impl<T: Transcendental, const MAX_MODES: usize> Algorithm<T> for ModalModel<T, MAX_MODES>
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: Clone + Transcendental, const MAX_MODES: usize> Clone for ModalModel<T, MAX_MODES>
impl<T: Clone + Transcendental, const MAX_MODES: usize> Clone for ModalModel<T, MAX_MODES>
Source§fn clone(&self) -> ModalModel<T, MAX_MODES>
fn clone(&self) -> ModalModel<T, MAX_MODES>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug + Transcendental, const MAX_MODES: usize> Debug for ModalModel<T, MAX_MODES>
impl<T: Debug + Transcendental, const MAX_MODES: usize> Debug for ModalModel<T, MAX_MODES>
Source§impl<T: Transcendental, const MAX_MODES: usize> ParameterizedAlgorithm<T> for ModalModel<T, MAX_MODES>
impl<T: Transcendental, const MAX_MODES: usize> ParameterizedAlgorithm<T> for ModalModel<T, MAX_MODES>
Source§type Params = ModalParams<T, MAX_MODES>
type Params = ModalParams<T, MAX_MODES>
The concrete parameter type for this algorithm.
Source§fn set_params(&mut self, params: Self::Params)
fn set_params(&mut self, params: Self::Params)
Replace all parameters atomically. Read more
Source§fn set_parameter(
&mut self,
name: &str,
value: ParamValue,
) -> Result<(), &'static str>
fn set_parameter( &mut self, name: &str, value: ParamValue, ) -> Result<(), &'static str>
Set a single parameter by name (for automation / scripting). Read more
Auto Trait Implementations§
impl<T, const MAX_MODES: usize> Freeze for ModalModel<T, MAX_MODES>where
T: Freeze,
impl<T, const MAX_MODES: usize> RefUnwindSafe for ModalModel<T, MAX_MODES>where
T: RefUnwindSafe,
impl<T, const MAX_MODES: usize> Send for ModalModel<T, MAX_MODES>
impl<T, const MAX_MODES: usize> Sync for ModalModel<T, MAX_MODES>
impl<T, const MAX_MODES: usize> Unpin for ModalModel<T, MAX_MODES>where
T: Unpin,
impl<T, const MAX_MODES: usize> UnsafeUnpin for ModalModel<T, MAX_MODES>where
T: UnsafeUnpin,
impl<T, const MAX_MODES: usize> UnwindSafe for ModalModel<T, MAX_MODES>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