Struct rimd::MidiMessage [] [src]

pub struct MidiMessage {
    pub data: Vec<u8>,
}

Midi message building and parsing. See http://www.midi.org/techspecs/midimessages.php for a description of the various Midi messages that exist.

Fields

Methods

impl MidiMessage
[src]

Return the status (type) of this message

Return the channel this message is on (TODO: return 0 for messages with no channel)

Get te data at index index from this message. Status is at index 0

Create a midi message from a vector of bytes

Get the next midi message from the reader given that the status stat has just been read

Get the next midi message from the reader given that there's a running status of stat and that in place of a status was read databyte

Extract next midi message from a reader

Create a note on message

Create a note off message

Create a polyphonic aftertouch message This message is most often sent by pressing down on the key after it "bottoms out".

Create a control change message This message is sent when a controller value changes. Controllers include devices such as pedals and levers. Controller numbers 120-127 are reserved as "Channel Mode Messages".

Create a program change message This message sent when the patch number changes. program is the new program number.

Create a channel aftertouch This message is most often sent by pressing down on the key after it "bottoms out". This message is different from polyphonic after-touch. Use this message to send the single greatest pressure value (of all the current depressed keys). pressure is the pressure value.

Create a pitch bench message This message is sent to indicate a change in the pitch bender (wheel or lever, typically). The pitch bender is measured by a fourteen bit value. Center (no pitch change) is 2000H. Sensitivity is a function of the transmitter. lsb are the least significant 7 bits. msb are the most significant 7 bits.

Trait Implementations

impl Debug for MidiMessage
[src]

Formats the value using the given formatter.

impl Clone for MidiMessage
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for MidiMessage
[src]

Formats the value using the given formatter. Read more