pub struct BarGrid { /* private fields */ }Expand description
A beat clock driven by the tempo estimate, phase-locked to the onset envelope.
Implementations§
Source§impl BarGrid
impl BarGrid
Sourcepub fn new(sample_rate: u32) -> Self
pub fn new(sample_rate: u32) -> Self
A grid for sample_rate, stopped until the first positive tempo.
Sourcepub fn process(&mut self, bpm: f32, onset: f32) -> GridPosition
pub fn process(&mut self, bpm: f32, onset: f32) -> GridPosition
Advance one hop against the current tempo estimate and onset envelope.
bpm is the tempo tracker’s estimate and onset the raw envelope —
raw for the same reason the tempo tracker reads it raw (see
gain): peak normalization is a slow AGC that would
reweight the history the lock averages over.
Auto Trait Implementations§
impl Freeze for BarGrid
impl RefUnwindSafe for BarGrid
impl Send for BarGrid
impl Sync for BarGrid
impl Unpin for BarGrid
impl UnsafeUnpin for BarGrid
impl UnwindSafe for BarGrid
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