Skip to main content

Crate beat_this

Crate beat_this 

Source

Structs§

AnalysisTiming
Per-stage timing from BeatThis::analyze_audio_timed.
AudioData
Mono audio data at a known sample rate.
BeatAnalysis
Full analysis result from the beat tracking pipeline.
BeatThis
High-level beat tracker composing the full pipeline.
RtenRuntime
Pure-Rust ONNX inference runtime backed by rten.
Tensor
Simple f32 tensor with shape (row-major / C-order).
TimedAnalysis
Analysis result with optional per-stage timing.

Traits§

Model
A loaded model ready for inference.
Runtime
Factory for loading models from ONNX files.

Functions§

beat_counts
Compute beat counts from beat and downbeat timestamps.
calculate_bpm
Calculate BPM from beat timestamps using median inter-beat interval.
load_audio
Load an audio file, convert to mono, and resample to target_sr.