wip: phrase_get

This commit is contained in:
🪞👃🪞 2024-10-12 07:29:09 +03:00
parent 60c129d868
commit f8581a866c
3 changed files with 16 additions and 9 deletions

View file

@ -34,6 +34,8 @@ impl Handle<Tui> for Arranger<Tui> {
key!(KeyCode::Right) => { self.focus_right(); },
// Put selected phrase at position
key!(KeyCode::Char('s')) => { self.arrangement.phrase_put(); },
// Select phrase at current position
key!(KeyCode::Char('g')) => { self.arrangement.phrase_get(); },
// Global play/pause binding
key!(KeyCode::Char(' ')) => match self.transport {
Some(ref mut transport) => { transport.write().unwrap().toggle_play()?; },