mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 19:56:42 +01:00
fix usecs_to_pulse
This commit is contained in:
parent
4ecd6eab3d
commit
9531d0e09d
2 changed files with 5 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue