1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
//! This is a library for serializing and deserializing MIDI (byte) streams. //! //! [`MidiMsg`] is the starting point for all MIDI messages. All `MidiMsg`s //! can be serialized into a valid MIDI sequence. You can create a `MidiMsg` //! and turn it into a `Vec<u8>` like so: //! //! ``` //! use midi_msg::*; //! //! MidiMsg::ChannelVoice { //! channel: Channel::Ch1, //! msg: ChannelVoiceMsg::NoteOn { //! note: 60, //! velocity: 127 //! } //! } //! .to_midi(); //! ``` //! //! See the [readme](https://github.com/AlexCharlton/midi-msg/blob/master/readme.md) for a //! list of the MIDI Manufacturer Association documents that are referenced throughout these docs. mod util; pub use util::{ freq_to_midi_note_cents, freq_to_midi_note_float, midi_note_cents_to_freq, midi_note_float_to_freq, }; mod time_code; pub use time_code::*; mod channel_voice; pub use channel_voice::*; mod channel_mode; pub use channel_mode::*; mod general_midi; pub use general_midi::*; mod system_common; pub use system_common::*; mod system_real_time; pub use system_real_time::*; mod system_exclusive; pub use system_exclusive::*; mod message; pub use message::*;