mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
jammable again - and autoconnects!
This commit is contained in:
parent
3ed9ebddd4
commit
768c2337e7
5 changed files with 98 additions and 59 deletions
|
|
@ -63,9 +63,32 @@ const KEYMAP: &'static [KeyBinding<App>] = keymap!(App {
|
|||
}
|
||||
}],
|
||||
[F(1), NONE, "toggle_help", "toggle help", |_: &mut App| {Ok(true)}],
|
||||
[Char('r'), NONE, "toggle_record", "toggle recording", |_: &mut App| {Ok(true)}],
|
||||
[Char('d'), NONE, "toggle_overdub", "toggle overdub", |_: &mut App| {Ok(true)}],
|
||||
[Char('m'), NONE, "toggle_monitor", "toggle input monitoring", |_: &mut App| {Ok(true)}],
|
||||
[Char('r'), NONE, "toggle_record", "toggle recording", |app: &mut App| {
|
||||
app.track_mut().map(|t|t.1.toggle_record());
|
||||
Ok(true)
|
||||
}],
|
||||
[Char('d'), NONE, "toggle_overdub", "toggle overdub", |app: &mut App| {
|
||||
app.track_mut().map(|t|t.1.toggle_overdub());
|
||||
Ok(true)
|
||||
}],
|
||||
[Char('m'), NONE, "toggle_monitor", "toggle input monitoring", |app: &mut App| {
|
||||
app.track_mut().map(|t|t.1.toggle_monitor());
|
||||
Ok(true)
|
||||
}],
|
||||
//fn toggle_record (s: &mut Launcher) -> Usually<bool> {
|
||||
//s.sequencer_mut().map(|s|s.recording = !s.recording);
|
||||
//Ok(true)
|
||||
//}
|
||||
|
||||
//fn toggle_overdub (s: &mut Launcher) -> Usually<bool> {
|
||||
//s.sequencer_mut().map(|s|s.overdub = !s.overdub);
|
||||
//Ok(true)
|
||||
//}
|
||||
|
||||
//fn toggle_monitor (s: &mut Launcher) -> Usually<bool> {
|
||||
//s.sequencer_mut().map(|s|s.monitoring = !s.monitoring);
|
||||
//Ok(true)
|
||||
//}
|
||||
[Up, NONE, "cursor_up", "move cursor up", |app: &mut App| {
|
||||
if app.entered {
|
||||
match app.section {
|
||||
|
|
@ -152,7 +175,7 @@ const KEYMAP: &'static [KeyBinding<App>] = keymap!(App {
|
|||
[Char('d'), CONTROL, "duplicate", "duplicate scene or track", duplicate],
|
||||
[Enter, NONE, "activate", "activate item at cursor", enter],
|
||||
[Esc, NONE, "escape", "unfocus", escape],
|
||||
[Char('r'), CONTROL, "rename", "rename current element", rename],
|
||||
//[Char('r'), CONTROL, "rename", "rename current element", rename],
|
||||
// [Char('='), NONE, "zoom_in", "Zoom in", zoom_in],
|
||||
// [Char('-'), NONE, "zoom_out", "Zoom out", zoom_out],
|
||||
// [Char('a'), NONE, "note_add", "Add note", note_add],
|
||||
|
|
@ -347,20 +370,6 @@ fn duplicate (_: &mut App) -> Usually<bool> { Ok(true) }
|
|||
|
||||
fn rename (_: &mut App) -> Usually<bool> { Ok(true) }
|
||||
|
||||
//fn toggle_record (s: &mut Launcher) -> Usually<bool> {
|
||||
//s.sequencer_mut().map(|s|s.recording = !s.recording);
|
||||
//Ok(true)
|
||||
//}
|
||||
|
||||
//fn toggle_overdub (s: &mut Launcher) -> Usually<bool> {
|
||||
//s.sequencer_mut().map(|s|s.overdub = !s.overdub);
|
||||
//Ok(true)
|
||||
//}
|
||||
|
||||
//fn toggle_monitor (s: &mut Launcher) -> Usually<bool> {
|
||||
//s.sequencer_mut().map(|s|s.monitoring = !s.monitoring);
|
||||
//Ok(true)
|
||||
//}
|
||||
//use crate::{core::*, model::*};
|
||||
//use super::focus::*;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue