fix usecs_to_pulse

This commit is contained in:
🪞👃🪞 2024-10-29 10:25:25 +02:00
parent 4ecd6eab3d
commit 9531d0e09d
2 changed files with 5 additions and 10 deletions

View file

@ -103,7 +103,7 @@ pub trait PulsesPerQuaver<U: TimeUnit> {
#[inline] fn usecs_to_pulse (&self, usec: U) -> U
where U: TimeFloat, Self: BeatsPerMinute<U>
{
usec / self.pulse_per_usec()
usec * self.pulse_per_usec()
}
/// Convert a number of pulses to a sample number (SR- and BPM-dependent)
#[inline] fn pulses_to_usec (&self, pulse: U) -> U