display correct launch time

This commit is contained in:
🪞👃🪞 2024-10-26 22:01:48 +03:00
parent b4015a727a
commit 491ed81e83
3 changed files with 7 additions and 9 deletions

View file

@ -346,7 +346,7 @@ impl<E: Engine> PhrasePlayer<E> {
pub fn toggle_record (&mut self) { self.recording = !self.recording; }
pub fn toggle_overdub (&mut self) { self.overdub = !self.overdub; }
pub fn enqueue_next (&mut self, phrase: Option<&Arc<RwLock<Phrase>>>) {
let start = self.clock.next_launch_sample();
let start = self.clock.next_launch_pulse();
self.next_phrase = Some((start.into(), phrase.map(|p|p.clone())));
self.reset = true;
}