mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
align sampler
This commit is contained in:
parent
44c28183de
commit
ba5e65ed7d
1 changed files with 29 additions and 27 deletions
|
|
@ -108,9 +108,14 @@ render!(Tui: (self: Groovebox) => {
|
||||||
let color = self.player.play_phrase().as_ref()
|
let color = self.player.play_phrase().as_ref()
|
||||||
.and_then(|(_,p)|p.as_ref().map(|p|p.read().unwrap().color))
|
.and_then(|(_,p)|p.as_ref().map(|p|p.read().unwrap().color))
|
||||||
.clone();
|
.clone();
|
||||||
let sampler = Align::w(Fill::y(SampleList::new(&self.sampler, &self.editor)));
|
|
||||||
let selectors = Bsp::e(ClipSelected::play_phrase(&self.player), ClipSelected::next_phrase(&self.player));
|
let sampler =
|
||||||
let edit_clip = MidiEditClip(&self.editor);
|
Fixed::x(sampler_w, Push::y(1, Align::w(Fill::y(SampleList::new(&self.sampler, &self.editor)))));
|
||||||
|
let selectors =
|
||||||
|
Bsp::e(ClipSelected::play_phrase(&self.player), ClipSelected::next_phrase(&self.player));
|
||||||
|
let edit_clip =
|
||||||
|
MidiEditClip(&self.editor);
|
||||||
|
|
||||||
self.size.of(Bsp::s(
|
self.size.of(Bsp::s(
|
||||||
Fill::x(Fixed::y(if self.pool.visible { 3 } else { 1 }, lay!(
|
Fill::x(Fixed::y(if self.pool.visible { 3 } else { 1 }, lay!(
|
||||||
Align::w(Meter("L/", self.sampler.input_meter[0])),
|
Align::w(Meter("L/", self.sampler.input_meter[0])),
|
||||||
|
|
@ -120,6 +125,8 @@ render!(Tui: (self: Groovebox) => {
|
||||||
&self.player.clock
|
&self.player.clock
|
||||||
))),
|
))),
|
||||||
))),
|
))),
|
||||||
|
Bsp::s(
|
||||||
|
lay!(Align::w(edit_clip), Align::e(selectors)),
|
||||||
Bsp::n(
|
Bsp::n(
|
||||||
Bsp::a(
|
Bsp::a(
|
||||||
Outer(Style::default().fg(TuiTheme::g(128))),
|
Outer(Style::default().fg(TuiTheme::g(128))),
|
||||||
|
|
@ -138,16 +145,11 @@ render!(Tui: (self: Groovebox) => {
|
||||||
),
|
),
|
||||||
Bsp::w(
|
Bsp::w(
|
||||||
Fixed::x(pool_w, Align::e(Fill::y(PoolView(&self.pool)))),
|
Fixed::x(pool_w, Align::e(Fill::y(PoolView(&self.pool)))),
|
||||||
Fill::xy(Bsp::e(
|
Fill::xy(Bsp::e(sampler, &self.editor)),
|
||||||
Fixed::x(sampler_w, Push::y(3, sampler)),
|
|
||||||
Bsp::s(
|
|
||||||
lay!(Align::w(edit_clip), Align::e(selectors)),
|
|
||||||
&self.editor
|
|
||||||
),
|
|
||||||
)),
|
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
)
|
||||||
))
|
))
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue