| Crates.io | kdmapi |
| lib.rs | kdmapi |
| version | 0.1.0 |
| created_at | 2020-12-18 19:58:17.057354+00 |
| updated_at | 2020-12-18 19:58:17.057354+00 |
| description | very minimal bindings for KDMAPI |
| homepage | |
| repository | https://github.com/khang06/kdmapi-rs |
| max_upload_size | |
| id | 324427 |
| size | 7,816 |
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();
}