mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
wip: component refactor
This commit is contained in:
parent
5082bf9fdf
commit
c18aa2cbbd
14 changed files with 374 additions and 272 deletions
18
src/main.rs
18
src/main.rs
|
|
@ -23,16 +23,12 @@ fn main () -> Result<(), Box<dyn Error>> {
|
|||
//crate::device::run(Sequencer::new("Rhythm#000")?)
|
||||
let transport = Transport::new("Transport")?;
|
||||
let timebase = transport.state.lock().unwrap().timebase();
|
||||
crate::device::run(Rows::new(true, vec![
|
||||
Box::new(transport),
|
||||
Box::new(Columns::new(false, vec![
|
||||
Box::new(Chain::new("Chain#0000", vec![
|
||||
Box::new(Sequencer::new("Melody#000", &timebase)?),
|
||||
Box::new(Plugin::new("Plugin#000")?),
|
||||
])?),
|
||||
Box::new(Sequencer::new("Melody#001", &timebase)?),
|
||||
Box::new(Sequencer::new("Rhythm#000", &timebase)?),
|
||||
])),
|
||||
crate::device::run(FocusColumn(Some(0), Column::new(vec![
|
||||
Box::new(transport) as Box<dyn Device>,
|
||||
Box::new(Chain::new("Chain#0000", vec![
|
||||
Box::new(Sequencer::new("Melody#000", &timebase)?),
|
||||
Box::new(Plugin::new("Plugin#000")?),
|
||||
])?),
|
||||
//Box::new(Columns::new(false, vec![
|
||||
//Box::new(Chain::new("Chain#00", vec![
|
||||
//Box::new(Sequencer::new("Rhythm#000")?),
|
||||
|
|
@ -45,5 +41,5 @@ fn main () -> Result<(), Box<dyn Error>> {
|
|||
//])),
|
||||
//Box::new(Mixer::new("Mixer#000")?),
|
||||
//Box::new(Sequencer::new("Rhythm#000")?),
|
||||
]))
|
||||
])))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue