midi: modularize

This commit is contained in:
🪞👃🪞 2025-04-26 01:29:57 +03:00
parent 39dc6b803e
commit 13444dc59a
29 changed files with 872 additions and 750 deletions

View file

@ -36,6 +36,9 @@ pub fn handle_arranger (app: &mut Tek, input: &TuiIn) -> Perhaps<bool> {
}
pub fn handle_sequencer (app: &mut Tek, input: &TuiIn) -> Perhaps<bool> {
if app.editor.handle(input)? == Some(true) {
return Ok(Some(true))
}
if let Some(command) = SourceIter(include_str!("../edn/sequencer_keys.edn"))
.command::<_, TekCommand, _>(app, input)
{
@ -48,6 +51,9 @@ pub fn handle_sequencer (app: &mut Tek, input: &TuiIn) -> Perhaps<bool> {
}
pub fn handle_groovebox (app: &mut Tek, input: &TuiIn) -> Perhaps<bool> {
if app.editor.handle(input)? == Some(true) {
return Ok(Some(true))
}
if let Some(command) = SourceIter(include_str!("../edn/groovebox_keys.edn"))
.command::<_, TekCommand, _>(app, input)
{