Rust, Midi, Programming.
Vec<f32> = vec![0_f32; OUTPUT_PARAMS.channel_sample_count]; let _device = run_output_device(OUTPUT_PARAMS, move |data| { synth_c .lock() .unwrap() .render(&mut left[..], &mut right[..]); for (i, value) in left.iter().interleave(right.iter()).enumerate() { data[i] = *value; } }) .unwrap(); // eframe