mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-13 07:06:41 +01:00
add just cov-md and bump total coverage to 29.26%
This commit is contained in:
parent
5b797342b7
commit
fd32cbc34c
5 changed files with 77 additions and 18 deletions
|
|
@ -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, .. } => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue