kdmapi

Crates.iokdmapi
lib.rskdmapi
version0.1.0
sourcesrc
created_at2020-12-18 19:58:17.057354
updated_at2020-12-18 19:58:17.057354
descriptionvery minimal bindings for KDMAPI
homepage
repositoryhttps://github.com/khang06/kdmapi-rs
max_upload_size
id324427
size7,816
Khangaroo (khang06)

documentation

README

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();
}
Commit count: 2

cargo fmt