compact sampler

This commit is contained in:
🪞👃🪞 2024-06-29 16:22:47 +03:00
parent 2432f27e8c
commit 15f71d0973
4 changed files with 135 additions and 131 deletions

View file

@ -17,7 +17,12 @@ pub fn handle (state: &mut Launcher, event: &AppEvent) -> Usually<bool> {
}
},
LauncherView::Chains => {
true
let i = state.col().saturating_sub(1);
if let Some(track) = state.tracks.get_mut(i) {
crate::device::chain::handle(&mut *track.chain.state(), event)?
} else {
true
}
}
})
}