sequencer zoom; still slooo

This commit is contained in:
🪞👃🪞 2024-07-02 16:30:16 +03:00
parent 939ffe3630
commit 2f96897d39
9 changed files with 111 additions and 73 deletions

View file

@ -55,7 +55,7 @@ pub fn draw_bpm (buf: &mut Buffer, x: u16, y: u16, bpm: usize) {
let style = Style::default().not_dim();
"BPM"
.blit(buf, x, y, Some(style));
format!("{:03}.{:03}", bpm / 1000, bpm % 1000)
format!("{}.{:03}", bpm as usize, bpm % 1)
.blit(buf, x + 4, y, Some(style.bold()));
"SYNC"
.blit(buf, x + 13, y, Some(style));