record-player 0.1.0

Standalone Bitneedle record player, acoustic scratch engine, and browser command protocol
Documentation
1
2
3
4
5
pub fn sharp_crossfader_gains(value: f32, width: f32) -> (f32, f32) {
    let x = value.clamp(0.0, 1.0);
    let width = width.clamp(0.0001, 1.0);
    ((x / width).clamp(0.0, 1.0), ((1.0 - x) / width).clamp(0.0, 1.0))
}