mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-12 22:56:41 +01:00
12 lines
369 B
Rust
12 lines
369 B
Rust
use crate::*;
|
|
#[derive(Clone, Debug)] pub enum InputCommand { Add }
|
|
atom_command!(InputCommand: |app: Tek| {
|
|
("add" [] Some(Self::Add))
|
|
});
|
|
command!(|self: InputCommand, app: Tek|match self {
|
|
Self::Add => {
|
|
app.midi_ins.push(JackMidiIn::new(&app.jack, &format!("M/{}", app.midi_ins.len()), &[])?);
|
|
app.redraw_arranger();
|
|
None
|
|
},
|
|
});
|