watch it do: display sample waveform during recording

This commit is contained in:
🪞👃🪞 2024-12-28 19:23:19 +01:00
parent 080c4131b7
commit 1859f378ea
2 changed files with 8 additions and 10 deletions

View file

@ -77,7 +77,7 @@ render!(<Tui>|self:GrooveboxTui|{
PhraseSelector::next_phrase(&self.player),
]))),
row!([
Tui::split_n(false, 5,
Tui::split_n(false, 9,
col!([
row!(|add|{
if let Some(sample) = &self.sampler.mapped[note_pt] {
@ -88,7 +88,7 @@ render!(<Tui>|self:GrooveboxTui|{
}),
lay!([
Outer(Style::default().fg(TuiTheme::g(128))),
Fill::w(Fixed::h(4, if let Some((_, sample)) = &self.sampler.recording {
Fill::w(Fixed::h(8, if let Some((_, sample)) = &self.sampler.recording {
SampleViewer(Some(sample.clone()))
} else if let Some(sample) = &self.sampler.mapped[note_pt] {
SampleViewer(Some(sample.clone()))