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

@ -21,8 +21,8 @@ render!(Tui: (self:MidiEditStatus<'a>) => {
if self.0.time_lock().get() { "[lock]" } else { " " })),
" ",
field(" Note", format!("{} ({}) {} | {}-{} ({})",
self.0.note_point(), to_note_name(self.0.note_point()), self.0.note_len(),
to_note_name(self.0.note_lo().get()), to_note_name(self.0.note_hi()),
self.0.note_point(), Note::pitch_to_name(self.0.note_point()), self.0.note_len(),
Note::pitch_to_name(self.0.note_lo().get()), Note::pitch_to_name(self.0.note_hi()),
self.0.note_axis().get()))
))))
});