time_calc
A library for music/DSP time conversions!
time_calc
provides functions and methods for converting between ticks, ms, samples, bars, beats and measures.
It looks like this:
const SAMPLE_HZ: SampleHz = 44_100.0;
let bpm: Bpm = 120.0;
let time_sig = TimeSig ;
println!
Usage
Add time_calc to your cargo dependencies like this:
[dependencies]
time_calc = "*"
See the example for a better demo.