enable sequencer zoom in/out during editing

This commit is contained in:
🪞👃🪞 2024-10-22 22:22:02 +03:00
parent 478624711f
commit d555ce1e9e

View file

@ -111,6 +111,12 @@ impl Handle<Tui> for PhraseEditor<Tui> {
true => { self.time_axis.point_inc(); },
false => { self.time_axis.start_inc(); },
},
key!(KeyCode::Char('>')) => {
self.time_axis.scale = prev_note_length(self.time_axis.scale)
},
key!(KeyCode::Char('<')) => {
self.time_axis.scale = next_note_length(self.time_axis.scale)
},
key!(KeyCode::Char(',')) => match self.entered {
true => { self.note_len = prev_note_length(self.note_len) },
false => { self.time_axis.scale = next_note_length(self.time_axis.scale) },