WMIDI
Midi encoding and decoding library.
Usage
use TryFrom;
// Decoding messages from bytes.
// Encoding messages to bytes.
Features
- Supports
no_stdenvironments. - No memory allocations (therefore realtime safe) for parsing and encoding.
- No memory allocations for creating
MidiMessage, except forMidiMessage::OwnedSysEx.
Testing & Benchmarking
- Build with
cargo build. - Test with
cargo test. - Benchmark with
cargo bench. The results will be under./target/criterion/report/index.html.
Changelog
4.0.0
- New ControlFunction type which simply wraps a U7.
- Constants and documentation for all ControlFunction values.
- Renumber Note enums/consts to be more consistent with midi; for example, C0 is now C1.
3.1.0
- Rename
MidiMessage::wire_size()toMidiMessage::bytes_size(). - Introduce
MidiMessage::copy_to_slice()method.
3.0.0
- Instances of U7 and U14 now have bounds checking.
- Note is now an enum instead of a u8. Can be converted with
Note::try_fromandu8::from.