wip: p.54, e=85

This commit is contained in:
🪞👃🪞 2024-11-18 16:51:43 +01:00
parent 76af9d9bac
commit 54fb5b6ece
9 changed files with 629 additions and 571 deletions

View file

@ -61,8 +61,17 @@ impl InputToCommand<Tui, SequencerTui> for SequencerCommand {
key!(KeyCode::Left) => Some(Self::Focus(Left)),
key!(KeyCode::Right) => Some(Self::Focus(Right)),
_ => Some(Self::App(match state.focused() {
SequencerFocus::Transport =>
TransportCommand::input_to_command(&state, input).map(Transport),
SequencerFocus::Transport => {
use TransportCommand::{Clock, Playhead};
match TransportCommand::input_to_command(view, input)? {
Clock(command) => {
todo!()
},
Playhead(command) => {
todo!()
},
}
},
SequencerFocus::Phrases =>
PhrasesCommand::input_to_command(&state.phrases, input).map(Phrases),
SequencerFocus::PhraseEditor =>