pub struct BarClock {
pub beat_in_bar: u32,
pub bar_index: u32,
pub bar_phase: f32,
pub confidence: f32,
pub locked: bool,
}Expand description
Bar-position output for one hop.
Fields§
§beat_in_bar: u32Which beat of the bar this is, 0..BEATS_PER_BAR.
bar_index: u32Bar counter — monotone except across an alignment change, since it is
(beat_count - alignment) / BEATS_PER_BAR and alignment moves when the
estimator locks, drops back, or is overtaken by a challenger. See
bar_index_steps_back_across_an_alignment_change, which pins the size of
that step at one bar.
bar_phase: f32Position across the bar in [0, 1), including the fraction through the
current beat — the true “bar phase” the shipped bar variable is not.
confidence: f32Alignment confidence in 0..1 — the noise-corrected share of accent
variation the alignment explains (see effect_size). Diagnostics only,
deliberately not a grammar variable: authors get behavior, not homework.
locked: boolWhether the published position came from the estimator (true) or the
deterministic counter fallback (false).