mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
midi: modularize
This commit is contained in:
parent
39dc6b803e
commit
13444dc59a
29 changed files with 872 additions and 750 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue