use std::time::Duration;
use vedasynth::Synth;
fn main() {
let mut synth = Synth::new();
let voice = synth.new_synth(1.0, 220.0);
std::thread::sleep(Duration::from_secs(2));
synth.set_volume(voice, 0.5);
synth.set_pitch(voice, 440.0);
std::thread::sleep(Duration::from_secs(2));
synth.stop_all();
std::thread::sleep(Duration::from_millis(100));
}