#bindings #basic #send #direct

nightly kdmapi

very minimal bindings for KDMAPI

1 unstable release

0.1.0 Dec 18, 2020

#644 in Audio

MIT license

7KB
122 lines

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();
}

Dependencies

~225KB