diff --git a/crates/tek_tui/src/tui_view_phrase_editor.rs b/crates/tek_tui/src/tui_view_phrase_editor.rs index 1670c67a..5c8ae6f0 100644 --- a/crates/tek_tui/src/tui_view_phrase_editor.rs +++ b/crates/tek_tui/src/tui_view_phrase_editor.rs @@ -328,28 +328,18 @@ impl PhraseViewMode { fn draw_piano_horizontal ( target: &mut BigBuffer, phrase: &Phrase, time_zoom: usize, _: usize ) { - //cell.set_char(if ppq == 0 { - //'·' - //} else if x % (4 * ppq) == 0 { - //'│' - //} else if x % ppq == 0 { - //'╎' - //} else { - //'·' - //}); - //cell.set_fg(Color::Rgb(48, 64, 56)); let style = Style::default().fg(Color::Rgb(255, 255, 255)); let mut notes_on = [false;128]; for (y, note) in (0..127).rev().enumerate() { for (x, time) in (0..target.width).map(|x|(x, x*time_zoom)) { let cell = target.get_mut(x, y).unwrap(); - cell.set_fg(Color::Rgb(38, 45, 35)); + cell.set_fg(Color::Rgb(48, 55, 45)); cell.set_char(if time % 384 == 0 { '│' } else if time % 96 == 0 { '╎' } else if note % 12 == 0 { - '-' + '=' } else { '·' }); @@ -358,15 +348,13 @@ impl PhraseViewMode { for (x, time_start) in (0..phrase.length).step_by(time_zoom).enumerate() { let time_end = time_start + time_zoom; for time in time_start..time_end { - for (y, note) in (127..0).enumerate() { + for (y, note) in (0..127).rev().enumerate() { let cell = target.get_mut(x, y).unwrap(); if notes_on[note] { cell.set_fg(Color::Rgb(255, 255, 255)); cell.set_bg(Color::Rgb(0, 0, 0)); cell.set_char('▄'); cell.set_style(style); - } else { - cell.set_char('x'); } } for event in phrase.notes[time].iter() {