vedasynth 0.0.3

A very simple synth library, very WIP but works for basic sine waves really easily.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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));
}