pub fn ticks_to_seconds(
ticks: u64,
ppq: u32,
bpm: f64,
) -> Result<f64, AudioError>Expand description
Convert a PPQ tick count to seconds of wall-clock time at a given tempo.
ppq = ticks per quarter note (e.g. 480). bpm = quarter notes/minute.
Returns AudioError::InvalidParameter if ppq == 0 or bpm <= 0.