mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
per-track reset
This commit is contained in:
parent
2989c79fd0
commit
63b5eb3740
4 changed files with 17 additions and 6 deletions
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue