pub fn quantize_tick(
tick: u64,
grid_ticks: u32,
strength: f64,
) -> Result<u64, AudioError>Expand description
Snap tick toward the nearest multiple of grid_ticks by strength.
grid_ticks is the grid spacing in ticks (e.g. a 1/16 note = ppq/4).
strength in [0, 1] is clamped. Returns AudioError::InvalidParameter
if grid_ticks == 0 or strength is not finite.