mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
fix arranger view but input is now dead
This commit is contained in:
parent
479988272e
commit
8850fbf2f8
3 changed files with 8 additions and 8 deletions
|
|
@ -77,14 +77,17 @@ impl App {
|
|||
tracks: usize,
|
||||
track_width: usize,
|
||||
) -> Self {
|
||||
Self {
|
||||
let mut arranger = Self {
|
||||
edn: include_str!("../edn/arranger.edn").to_string(),
|
||||
..Self::groovebox(
|
||||
jack, pool, editor,
|
||||
None, midi_froms, midi_tos,
|
||||
sampler, audio_froms, audio_tos
|
||||
)
|
||||
}
|
||||
};
|
||||
arranger.scenes_add(scenes);
|
||||
arranger.tracks_add(tracks, track_width, &[], &[]);
|
||||
arranger
|
||||
}
|
||||
}
|
||||
has_size!(<TuiOut>|self: App|&self.size);
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ impl App {
|
|||
self.row(w, h, output_header(&self), output_cells(&self))
|
||||
}
|
||||
fn scene_row (&self, w: u16, h: u16) -> impl Content<TuiOut> + '_ {
|
||||
self.row(w, h, output_header(&self), output_cells(&self))
|
||||
self.row(w, h, scene_header(&self), scene_cells(&self))
|
||||
}
|
||||
|
||||
pub fn tracks_with_sizes (&self)
|
||||
|
|
@ -228,7 +228,7 @@ fn output_cells <'a> (state: &'a App) -> BoxThunk<'a, TuiOut> {
|
|||
))))
|
||||
})).boxed()).into()
|
||||
}
|
||||
fn scene_headers <'a> (state: &'a App) -> BoxThunk<'a, TuiOut> {
|
||||
fn scene_header <'a> (state: &'a App) -> BoxThunk<'a, TuiOut> {
|
||||
(||{
|
||||
let last_color = Arc::new(RwLock::new(ItemPalette::from(Color::Rgb(0, 0, 0))));
|
||||
let selected = state.selected.scene();
|
||||
|
|
@ -600,7 +600,6 @@ fn cell <T: Content<TuiOut>> (color: ItemPalette, field: T) -> impl Content<TuiO
|
|||
//impl Arranger {
|
||||
//const EDN: &'static str = include_str!("../edn/arranger.edn");
|
||||
//pub const LEFT_SEP: char = '▎';
|
||||
//pub const TRACK_MIN_WIDTH: usize = 9;
|
||||
|
||||
//fn toolbar (&self) -> impl Content<TuiOut> + use<'_> {
|
||||
//Fill::x(Fixed::y(2, Align::x(ClockView::new(true, &self.clock))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue