src -> app; move core libs to tengri

This commit is contained in:
🪞👃🪞 2025-03-04 00:51:35 +02:00
parent 8465d64807
commit bcc3f5809e
113 changed files with 132 additions and 5729 deletions

12
app/src/keys_ins.rs Normal file
View file

@ -0,0 +1,12 @@
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
},
});