wip: refactor pt.19: 22 errors

This commit is contained in:
🪞👃🪞 2024-11-11 15:18:56 +01:00
parent 2be2c8aca2
commit 914c2d6c09
12 changed files with 78 additions and 61 deletions

View file

@ -336,10 +336,18 @@ pub(crate) fn keys_vert () -> Buffer {
cell.set_fg(Color::White);
cell.set_bg(Color::White);
},
2 => if y % 6 == 0 { cell.set_char('C'); },
3 => if y % 6 == 0 { cell.set_symbol(NTH_OCTAVE[(y / 6) as usize]); },
2 => if y % 6 == 0 {
cell.set_char('C');
},
3 => if y % 6 == 0 {
cell.set_symbol(NTH_OCTAVE[(y / 6) as usize]);
},
_ => {}
}
});
buffer
}
const NTH_OCTAVE: [&'static str; 11] = [
"-2", "-1", "0", "1", "2", "3", "4", "5", "6", "7", "8",
];