pub struct BeatClock {
pub bpm: f32,
pub bar: f32,
pub beat_index: u32,
pub time_since_beat: f32,
}Expand description
One hop’s beat-clock reading (ADR-0050 Layer 1 plus the pre-existing tempo pair), returned together because they all derive from the same beat stream.
Fields§
§bpm: f32Tempo estimate in BPM; 0 until the tracker warms.
bar: f32Beat phase in [0, 1) — the shipped bar variable, whose name is a
documented misnomer (ADR-0050).
beat_index: u32Monotone count of beats seen, starting at 0 on the first one.
time_since_beat: f32Seconds since the last detected beat; exactly 0 on a beat hop.
Trait Implementations§
impl Copy for BeatClock
impl StructuralPartialEq for BeatClock
Auto Trait Implementations§
impl Freeze for BeatClock
impl RefUnwindSafe for BeatClock
impl Send for BeatClock
impl Sync for BeatClock
impl Unpin for BeatClock
impl UnsafeUnpin for BeatClock
impl UnwindSafe for BeatClock
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