kdmapi 0.1.0

very minimal bindings for KDMAPI
docs.rs failed to build kdmapi-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

kdmapi-rs

very basic kdmapi bindings for rust

example code:

fn test_midi() {
    let res = kdmapi::init();
    match res {
        Ok(()) => (),
        Err(x) => {
            println!("{}", x);
            unreachable!();
        }
    }

    // play a C4 for 1 second
    kdmapi::send_direct_data(0x007F3090);
    std::thread::sleep(std::time::Duration::from_millis(1000));

    kdmapi::terminate();
}