per-track reset

This commit is contained in:
🪞👃🪞 2024-07-05 20:14:49 +03:00
parent 2989c79fd0
commit 63b5eb3740
4 changed files with 17 additions and 6 deletions

View file

@ -82,7 +82,7 @@ process!(App |self, _client, scope| {
} = scope.cycle_times().unwrap();
let transport = self.transport.as_ref().unwrap().query().unwrap();
self.playhead = transport.pos.frame() as usize;
let mut send_all_off = false;
let mut reset = false;
if self.playing != Some(transport.state) {
match transport.state {
TransportState::Rolling => {
@ -90,7 +90,7 @@ process!(App |self, _client, scope| {
},
TransportState::Stopped => {
self.play_started = None;
send_all_off = true;
reset = true;
},
_ => {}
}
@ -103,7 +103,7 @@ process!(App |self, _client, scope| {
self.playing,
self.play_started,
self.quant,
send_all_off,
reset,
&scope,
(current_frames as usize, self.chunk_size),
(current_usecs as usize, next_usecs.saturating_sub(current_usecs) as usize),