add just cov-md and bump total coverage to 29.26%

This commit is contained in:
🪞👃🪞 2025-02-15 19:30:32 +00:00
parent 5b797342b7
commit fd32cbc34c
5 changed files with 77 additions and 18 deletions

View file

@ -104,9 +104,10 @@ impl PianoHorizontal {
match event {
MidiMessage::NoteOn { key, .. } => {
let note = key.as_int() as usize;
let cell = buf.get_mut(x, note).unwrap();
cell.set_char('█');
cell.set_style(style);
if let Some(cell) = buf.get_mut(x, note) {
cell.set_char('█');
cell.set_style(style);
}
notes_on[note] = true
},
MidiMessage::NoteOff { key, .. } => {