refactor midi module

This commit is contained in:
🪞👃🪞 2025-01-02 13:32:08 +01:00
parent 1723826cc2
commit 7f55c3bfc8
8 changed files with 333 additions and 330 deletions

View file

@ -19,9 +19,9 @@ render!(Tui: |self: PianoHorizontalKeys<'a>, to|{
continue
}
if note == note_point {
to.blit(&format!("{:<5}", to_note_name(note)), x, screen_y, on_style)
to.blit(&format!("{:<5}", Note::pitch_to_name(note)), x, screen_y, on_style)
} else {
to.blit(&to_note_name(note), x, screen_y, off_style)
to.blit(&Note::pitch_to_name(note), x, screen_y, off_style)
};
}
});