vertical scroll sequencer, pt.2

This commit is contained in:
🪞👃🪞 2024-10-28 20:36:39 +02:00
parent 767b9ff983
commit 1ce5ab6f27
2 changed files with 20 additions and 4 deletions

View file

@ -105,7 +105,7 @@ impl Content for PhraseEditor<Tui> {
if let (Some(time), Some(note)) = (time_point, note_point) {
let x1 = area.x() + (time / time_scale) as u16;
let x2 = x1 + (self.note_len / time_scale) as u16;
let y = area.y() + note as u16 / 2;
let y = area.y() + note.saturating_sub(note_start) as u16 / 2;
let c = if note % 2 == 0 { "" } else { "" };
for x in x1..x2 {
to.blit(&c, x, y, Some(Style::default().fg(color)));