mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
show sample during recording
This commit is contained in:
parent
f09a6072f8
commit
240c498a50
3 changed files with 17 additions and 20 deletions
|
|
@ -88,7 +88,13 @@ render!(<Tui>|self:GrooveboxTui|{
|
|||
}),
|
||||
lay!([
|
||||
Outer(Style::default().fg(TuiTheme::g(128))),
|
||||
Fill::w(Fixed::h(4, SampleViewer(None))),
|
||||
Fill::w(Fixed::h(4, 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()))
|
||||
} else {
|
||||
SampleViewer(None)
|
||||
})),
|
||||
]),
|
||||
]),
|
||||
Tui::split_w(false, pool_w,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue