recombine arranger, sequencer modules

This commit is contained in:
🪞👃🪞 2024-07-13 22:49:51 +03:00
parent 7ef97bcf3a
commit 190aca8d3b
12 changed files with 658 additions and 660 deletions

View file

@ -2,7 +2,7 @@
use crate::{core::*, handle, App, AppFocus};
submod!{ arranger chain focus mixer plugin sampler sequencer transport }
submod!{ chain focus mixer plugin sampler transport }
handle!{
App |self, e| {
@ -31,9 +31,9 @@ fn handle_focused (state: &mut App, e: &AppEvent) -> Usually<bool> {
AppFocus::Transport =>
handle_keymap(state, e, crate::control::transport::KEYMAP_TRANSPORT),
AppFocus::Arranger =>
handle_keymap(state, e, crate::control::arranger::KEYMAP_ARRANGER),
handle_keymap(state, e, crate::devices::arranger::KEYMAP_ARRANGER),
AppFocus::Sequencer =>
handle_keymap(state, e, crate::control::sequencer::KEYMAP_SEQUENCER),
handle_keymap(state, e, crate::devices::sequencer::KEYMAP_SEQUENCER),
AppFocus::Chain => Ok(if state.entered {
handle_device(state, e)? ||
handle_keymap(state, e, crate::control::chain::KEYMAP_CHAIN)?