pub fn downsample_peaks(peaks: &[u8], buckets: usize) -> Vec<u8> ⓘ
Reduce amplitude peaks to at most buckets values, preserving the maximum value from each source window.
buckets