midilab
Software library for programming midi controllers via Sysex messages
Device definitions by manufacturer and APIs for sysex message de/serialiation
Library usage:
Add midilab to your Cargo.toml:
Examples
Parse raw bytes into a Sysex message:
use Sysex;
let bytes: & = &;
let sysex = try_from.unwrap;
assert_eq!;
Deserialize an Akai MPD226 preset acknowledgment:
use Sysex;
use DeviceStatus;
// Deserialize an Akai Mpd226's raw PresetAck bytes into Sysex
let bytes: & = &;
let sysex = try_from.unwrap;
// Deserialize the Sysex into a DeviceStatus variant
let status = try_from.unwrap;
Re-exports
midilab re-exports strum::IntoEnumIterator as midilab::IntoEnumIterator so consumers of this
library can take advantage of derived EnumIter features in many of midilab's enums.
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.