mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
switch between sequences; layout unfucking
This commit is contained in:
parent
c18aa2cbbd
commit
185c6b5b34
7 changed files with 253 additions and 201 deletions
24
src/main.rs
24
src/main.rs
|
|
@ -20,26 +20,10 @@ fn main () -> Result<(), Box<dyn Error>> {
|
|||
let _cli = cli::Cli::parse();
|
||||
let xdg = microxdg::XdgApp::new("dawdle")?;
|
||||
crate::config::create_dirs(&xdg)?;
|
||||
//crate::device::run(Sequencer::new("Rhythm#000")?)
|
||||
let transport = Transport::new("Transport")?;
|
||||
let timebase = transport.state.lock().unwrap().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")?),
|
||||
//Box::new(Sampler::new("Sampler#00")?),
|
||||
//])?),
|
||||
//Box::new(Chain::new("Chain#01", vec![
|
||||
//Box::new(Sequencer::new("Melody#000")?),
|
||||
//Box::new(Plugin::new("Plugin#000")?),
|
||||
//])?),
|
||||
//])),
|
||||
//Box::new(Mixer::new("Mixer#000")?),
|
||||
//Box::new(Sequencer::new("Rhythm#000")?),
|
||||
])))
|
||||
crate::device::run(Chain::new("Chain#0000", vec![
|
||||
Box::new(Sequencer::new("Melody#000", &timebase)?),
|
||||
Box::new(Plugin::new("Plugin#000")?),
|
||||
])?)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue