pub fn fold(track: &Track, period: Seconds) -> Vec<f64>
Folds a track over a period into 64 bins: bin b is the mean of the samples whose phase falls in [b / 64, (b + 1) / 64). The result is one cycle of the waveform.
b
[b / 64, (b + 1) / 64)