pub struct PatternSequencer {
rows: usize,
data: Vec<Vec<(f32, u8)>>,
rng: SplitMix64,
rand_vals: [(usize, f64); 6],
}
Fields
rows: usize
data: Vec<Vec<(f32, u8)>>
rng: SplitMix64
rand_vals: [(usize, f64); 6]
Implementations
sourceimpl PatternSequencer
impl PatternSequencer
pub fn new_default_seed(rows: usize) -> Self
pub fn new(rows: usize) -> Self
pub fn set_rows(&mut self, rows: usize)
pub fn rows(&self) -> usize
pub fn set_col(&mut self, col: usize, col_data: &[(f32, u8)])
pub fn col_interpolate_at_phase(
&self,
col: usize,
phase: &[f32],
out: &mut [f32],
out_gate: &mut [f32]
)
pub fn col_get_at_phase(
&self,
col: usize,
phase: &[f32],
out: &mut [f32],
out_gate: &mut [f32]
)
pub fn col_gate_at_phase(
&mut self,
col_idx: usize,
phase: &[f32],
out: &mut [f32],
out_gate: &mut [f32]
)
Auto Trait Implementations
impl RefUnwindSafe for PatternSequencer
impl Send for PatternSequencer
impl Sync for PatternSequencer
impl Unpin for PatternSequencer
impl UnwindSafe for PatternSequencer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more