Struct Ladder Bank
pub struct LadderBank { /* private fields */ }Expand description
Fixed 1..64 channel independently evolving ladder histories with shared immutable coefficient copies and maximum block 1..65536. All shape/prefix/frame validation completes before output/history. Empty calls do not advance; suffixes remain untouched. Per-channel scalar access returns all modes once.
Implementations§
§impl LadderBank
impl LadderBank
pub fn new( design: LadderDesign, channels: usize, maximum_frames: usize, ) -> Result<Self, LadderError>
pub fn channels(&self) -> usize
pub fn maximum_frames(&self) -> usize
pub fn design(&self) -> LadderDesign
pub fn last_solve(&self, channel: usize) -> Result<LadderSolveInfo, LadderError>
pub fn capacitor_state(&self, channel: usize) -> Result<[f64; 4], LadderError>
pub fn set_design(&mut self, design: LadderDesign)
pub fn replace_design(&mut self, design: LadderDesign)
pub fn set_bypassed(&mut self, bypassed: bool)
pub fn is_bypassed(&self) -> bool
pub fn reset(&mut self)
pub fn snap_to_zero(&mut self)
pub fn process_channel( &mut self, channel: usize, x: f64, ) -> Result<LadderOutputs, LadderError>
pub fn process_frame( &mut self, input: &[f64], output: &mut [f64], mode: LadderMode, ) -> Result<(), LadderError>
pub fn process( &mut self, input: &[&[f64]], output: &mut [&mut [f64]], frames: usize, mode: LadderMode, ) -> Result<(), LadderError>
pub fn process_in_place( &mut self, buffer: &mut [&mut [f64]], frames: usize, mode: LadderMode, ) -> Result<(), LadderError>
Trait Implementations§
§impl Clone for LadderBank
impl Clone for LadderBank
§fn clone(&self) -> LadderBank
fn clone(&self) -> LadderBank
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LadderBank
impl RefUnwindSafe for LadderBank
impl Send for LadderBank
impl Sync for LadderBank
impl Unpin for LadderBank
impl UnsafeUnpin for LadderBank
impl UnwindSafe for LadderBank
Blanket Implementations§
§impl<T> BorrowMut<T> for T
impl<T> BorrowMut<T> for T
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more