mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
fix slooo
This commit is contained in:
parent
2f96897d39
commit
e30dd94d23
3 changed files with 29 additions and 13 deletions
|
|
@ -25,11 +25,11 @@ impl Phrase {
|
|||
frame0: usize,
|
||||
frames: usize,
|
||||
) {
|
||||
let ticks = timebase.frames_to_ticks(
|
||||
frame0 as f64,
|
||||
(frame0 + frames) as f64,
|
||||
timebase.pulses_frames(self.length as f64)
|
||||
);
|
||||
let start = frame0 as f64;
|
||||
let end = start + frames as f64;
|
||||
let repeat = timebase.pulses_frames(self.length as f64);
|
||||
let ticks = timebase.frames_to_ticks(start, end, repeat);
|
||||
//panic!("{start} {end} {repeat} {ticks:?}");
|
||||
for (time, tick) in ticks.iter() {
|
||||
let events = self.notes.get(&(*tick as usize));
|
||||
if events.is_none() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue