mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 04:36:45 +01:00
extract transport
This commit is contained in:
parent
449615eea8
commit
5a9ec0a63d
12 changed files with 178 additions and 182 deletions
|
|
@ -72,7 +72,7 @@ const KEYMAP: &'static [KeyBinding<App>] = keymap!(App {
|
|||
}],
|
||||
|
||||
[Char(' '), NONE, "play_toggle", "play or pause", |app: &mut App| {
|
||||
app.toggle_play()?;
|
||||
app.transport.toggle_play()?;
|
||||
Ok(true)
|
||||
}],
|
||||
[Char('r'), NONE, "record_toggle", "toggle recording", |app: &mut App| {
|
||||
|
|
@ -89,11 +89,11 @@ const KEYMAP: &'static [KeyBinding<App>] = keymap!(App {
|
|||
}],
|
||||
|
||||
[Char('+'), NONE, "quant_inc", "Quantize coarser", |app: &mut App| {
|
||||
app.quant = next_note_length(app.quant);
|
||||
app.transport.quant = next_note_length(app.transport.quant);
|
||||
Ok(true)
|
||||
}],
|
||||
[Char('_'), NONE, "quant_dec", "Quantize finer", |app: &mut App| {
|
||||
app.quant = prev_note_length(app.quant);
|
||||
app.transport.quant = prev_note_length(app.transport.quant);
|
||||
Ok(true)
|
||||
}],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue