diff --git a/crates/tek_tui/src/tui_control_phrase_editor.rs b/crates/tek_tui/src/tui_control_phrase_editor.rs index 720daf46..04556b70 100644 --- a/crates/tek_tui/src/tui_control_phrase_editor.rs +++ b/crates/tek_tui/src/tui_control_phrase_editor.rs @@ -51,10 +51,13 @@ impl InputToCommand for PhraseCommand { state.note_point.load(Ordering::Relaxed).saturating_sub(3) ), key!(Left) => SetTimeCursor( - state.note_point.load(Ordering::Relaxed).saturating_sub(1) + state.time_point.load(Ordering::Relaxed).saturating_sub( + state.time_scale.load(Ordering::Relaxed) + ) ), key!(Right) => SetTimeCursor( - state.note_point.load(Ordering::Relaxed) + 1 + state.time_point.load(Ordering::Relaxed) + + state.time_scale.load(Ordering::Relaxed) ), _ => return None }, @@ -73,10 +76,10 @@ impl InputToCommand for PhraseCommand { state.note_lo.load(Ordering::Relaxed).saturating_sub(3) ), key!(Left) => SetTimeScroll( - state.note_lo.load(Ordering::Relaxed).saturating_sub(1) + state.time_start.load(Ordering::Relaxed).saturating_sub(1) ), key!(Right) => SetTimeScroll( - state.note_lo.load(Ordering::Relaxed) + 1 + state.time_start.load(Ordering::Relaxed) + 1 ), key!(Char('a')) => AppendNote, key!(Char('s')) => PutNote,