mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-15 16:06:41 +01:00
refactors and cleanups
This commit is contained in:
parent
78afaf9693
commit
6979fd67ec
8 changed files with 126 additions and 173 deletions
|
|
@ -14,9 +14,8 @@ use crate::{core::*, model::*};
|
|||
|
||||
/// Application entrypoint.
|
||||
pub fn main () -> Usually<()> {
|
||||
let mut init = App::new()?;
|
||||
init.connect_to_midi_ins(&["nanoKEY Studio.*capture.*"])?
|
||||
.connect_to_audio_outs(&["Komplete.+:playback_FL", "Komplete.+:playback_FR"])?
|
||||
.load_edn(include_str!("../demos/project.edn"))?;
|
||||
init.activate().map(|app|run(app)).map(|_|())
|
||||
let mut app = App::new(include_str!("../demos/project.edn"))?;
|
||||
app.connect_to_midi_ins(&["nanoKEY Studio.*capture.*"])?;
|
||||
app.connect_to_audio_outs(&["Komplete.+:playback_FL", "Komplete.+:playback_FR"])?;
|
||||
run(app.activate()?).map(|_|())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue