Structs§
- Control
Function - A Control Change signal. The names of each variant of the constants are from the 1997 MIDI 1.0 specification. The names and description reflect the standard assignment and behavior for each CC number, though manufacturers may ignore some controllers or use non-standard mappings. MIDI devices should provide a controller allocation table as part of their user manual.
- U7
- A data byte that holds 7 bits of information.
- U14
- A combination of 2 data bytes that holds 14 bits of information.
Enums§
- Channel
- The MIDI channel. There are 16 channels. They are numbered between 1 and 16 inclusive, or indexed between 0 and 15 inclusive.
- From
Bytes Error - Midi decoding errors.
- Midi
Message - Holds information based on the Midi 1.0 spec.
- Note
- A midi note.
- ToSlice
Error - An error that can occur converting a midi message to a bytes slice.
Functions§
- note_
to_ frequency_ f32 Deprecated - The frequency for
noteusing the standard 440Hz tuning. - note_
to_ frequency_ f64 Deprecated - The frequency for
noteusing the standard 440Hz tuning.
Type Aliases§
- Control
Value - Specifies the value of a MIDI control.
- Error
- Use
FromBytesErrorinstead. - Pitch
Bend - A 14bit value specifying the pitch bend. Neutral is 8192.
- Program
Number - Specifies a program. Sometimes known as patch.
- Song
- A song or sequence.
- Song
Position - 14 bit value that holds the number of MIDI beats (1 beat = six MIDI clocks) since the start of the song.
- Velocity
- Specifies the velocity of an action (often key press, release, or aftertouch).