From f00923b41457ba840b2b1d75c30c89799ff0c3cd Mon Sep 17 00:00:00 2001 From: Bel LaPointe <153096461+breel-render@users.noreply.github.com> Date: Fri, 13 Mar 2026 11:35:03 -0600 Subject: [PATCH] if promopt then async --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 49002ae..2a464e6 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,6 +30,7 @@ fn play_with_flags(flags: &flags::Flags) { )); let mut i = 0; + let mut sync = true; for p in flags.play.iter() { for p in play::new(p.clone()) { syn_seq.append(i as i32, p); @@ -37,11 +38,12 @@ fn play_with_flags(flags: &flags::Flags) { } } if i == 0 { + sync = false; let s: String = prompt!("> ").parse().expect("failed to readline"); panic!("not impl"); } - play(syn_seq, flags.sample_rate, flags.bpm, true); + play(syn_seq, flags.sample_rate, flags.bpm, sync); } fn play(mut s: seq::SynSeq, sample_rate: usize, bpm: usize, sync: bool) {