wip: phrase loop

This commit is contained in:
🪞👃🪞 2024-07-04 16:24:57 +03:00
parent 9a6e7ab3b4
commit 4b909ffdc3
2 changed files with 31 additions and 1 deletions

View file

@ -18,6 +18,30 @@ handle!(App |self, e| {
});
const KEYMAP: &'static [KeyBinding<App>] = keymap!(App {
[Char('x'), NONE, "extend", "double the current clip", |app: &mut App| {
// TODO: This duplicates the current clip's contents and doubles the length.
Ok(true)
}],
[Char('l'), NONE, "toggle_loop", "toggle looping", |app: &mut App| {
// TODO: This toggles the loop flag for the clip under the cursor.
Ok(true)
}],
[Char('['), NONE, "loop_start_dec", "move loop start back", |app: &mut App| {
// TODO: This moves the loop start to the previous quant.
Ok(true)
}],
[Char(']'), NONE, "loop_start_inc", "move loop start forward", |app: &mut App| {
// TODO: This moves the loop start to the next quant.
Ok(true)
}],
[Char('{'), NONE, "loop_end_dec", "move loop end back", |app: &mut App| {
// TODOO: This moves the loop end to the previous quant.
Ok(true)
}],
[Char('}'), NONE, "loop_end_inc", "move loop end forward", |app: &mut App| {
// TODO: This moves the loop end to the next quant.
Ok(true)
}],
[Char(' '), NONE, "toggle_play", "play or pause", |app: &mut App| {
app.toggle_play()?;
Ok(true)