slightly closer to scripted

This commit is contained in:
🪞👃🪞 2025-08-10 21:05:14 +03:00
parent 50728729b7
commit fcfb7a0915
5 changed files with 66 additions and 46 deletions

View file

@ -1,6 +1,4 @@
use crate::*;
#[derive(Debug)]
pub enum AppCommand {}
handle!(TuiIn:|self: App, input|{
panic!("wat: {:?}", self.mode);
for keys in self.mode.keys.iter() {
@ -91,6 +89,9 @@ dsl_sym!(|app: App| -> Option<Arc<RwLock<MidiClip>>> {
None
}
});
#[derive(Debug)]
pub enum AppCommand {
}
dsl_exp!(|app: App| -> AppCommand {
["stop-all"] => app.project.stop_all(),
["enqueue", clip?: Option<Arc<RwLock<MidiClip>>>] => todo!(),