mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-08 12:46:42 +01:00
vertical scroll sequencer, pt.2
This commit is contained in:
parent
767b9ff983
commit
1ce5ab6f27
2 changed files with 20 additions and 4 deletions
|
|
@ -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)));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue