mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
simplify note status
This commit is contained in:
parent
ba5e65ed7d
commit
52e34ce8a7
1 changed files with 5 additions and 4 deletions
|
|
@ -29,11 +29,12 @@ render!(Tui: (self: MidiEditStatus<'a>) => {
|
||||||
let time_lock = if self.0.time_lock().get() { "[lock]" } else { " " };
|
let time_lock = if self.0.time_lock().get() { "[lock]" } else { " " };
|
||||||
let time_field = Field(color, "Time", format!("{length}/{time_zoom}+{time_point} {time_lock}"));
|
let time_field = Field(color, "Time", format!("{length}/{time_zoom}+{time_point} {time_lock}"));
|
||||||
|
|
||||||
|
let note_point = format!("{:>3}", self.0.note_point());
|
||||||
|
let note_name = format!("{:4}", Note::pitch_to_name(self.0.note_point()));
|
||||||
|
let note_field = Field(color, "Note", format!("{note_name} {note_point}"));
|
||||||
|
|
||||||
Tui::bg(color.darkest.rgb, Fill::x(Tui::fg(color.lightest.rgb, Bsp::e(
|
Tui::bg(color.darkest.rgb, Fill::x(Tui::fg(color.lightest.rgb, Bsp::e(
|
||||||
time_field,
|
time_field,
|
||||||
Field(color, "Note", format!("{} ({}) {} | {}-{} ({})",
|
note_field,
|
||||||
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()))
|
|
||||||
))))
|
))))
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue