mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 20:26:42 +01:00
big flat pt.13: fixed warnings, let's see what it has in store
This commit is contained in:
parent
e21ef1af94
commit
5bc3517dde
13 changed files with 68 additions and 45 deletions
|
|
@ -24,8 +24,9 @@ pub struct SequencerCli {
|
|||
|
||||
impl SequencerCli {
|
||||
fn run (&self) -> Usually<()> {
|
||||
let name = self.name.as_deref().unwrap_or("tek_sequencer");
|
||||
Tui::run(JackConnection::new(name)?.activate_with(|jack|{
|
||||
let name = self.name.as_deref().unwrap_or("tek_sequencer");
|
||||
let engine = Tui::new()?;
|
||||
let state = JackConnection::new(name)?.activate_with(|jack|{
|
||||
let mut app = SequencerTui::try_from(jack)?;
|
||||
let jack = jack.read().unwrap();
|
||||
let midi_in = jack.register_port("i", MidiIn::default())?;
|
||||
|
|
@ -35,8 +36,8 @@ impl SequencerCli {
|
|||
app.player.midi_ins.push(midi_in);
|
||||
app.player.midi_outs.push(midi_out);
|
||||
Ok(app)
|
||||
})?)?;
|
||||
Ok(())
|
||||
})?;
|
||||
engine.run(&state)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue