load project from file

This commit is contained in:
🪞👃🪞 2024-07-08 17:27:58 +03:00
parent e2a842492e
commit eeb2faf064
9 changed files with 320 additions and 245 deletions

View file

@ -143,12 +143,13 @@ impl App {
note_cursor: self.note_cursor,
note_start: self.note_start,
}.render(buf, area)?;
let track = self.tracks.get(self.track_cursor - 1).unwrap();
if phrase.is_none() && self.section == AppSection::Sequencer {
let label = format!("[ENTER] Create new clip: {}", track.name);
let x = area.x + seq_area.width / 2 - (label.len() / 2) as u16;
let y = area.y + seq_area.height / 2;
label.blit(buf, x, y, Some(Style::default().white()));
if let Some(track) = self.tracks.get(self.track_cursor - 1) {
if phrase.is_none() && self.section == AppSection::Sequencer {
let label = format!("[ENTER] Create new clip: {}", track.name);
let x = area.x + seq_area.width / 2 - (label.len() / 2) as u16;
let y = area.y + seq_area.height / 2;
label.blit(buf, x, y, Some(Style::default().white()));
}
}
Ok(seq_area)
}