dynamic device activation

This commit is contained in:
🪞👃🪞 2024-06-16 19:13:50 +03:00
parent b73aa8a0dc
commit e4f3942757
9 changed files with 484 additions and 587 deletions

View file

@ -20,11 +20,8 @@ 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")?)
crate::device::run(Rows::new(true, vec![
Box::new(Sequencer::new("Rhythm#000")?),
Box::new(Transport::new("Transport0")?),
]))
//crate::device::run(Rows::new(true, vec![
//Box::new(Columns::new(false, vec![
//Box::new(Chain::new("Chain#00", vec![
//Box::new(Sequencer::new("Rhythm#000")?),
@ -36,6 +33,8 @@ fn main () -> Result<(), Box<dyn Error>> {
//])?),
//])),
//Box::new(Mixer::new("Mixer#000")?),
//Box::new(Transport::new()?),
//]))
Box::new(Sequencer::new("Melody#000")?),
Box::new(Transport::new("Transport")?),
Box::new(Sequencer::new("Rhythm#000")?),
]))
}