类:MidiPacket
MidiPacket 类封装了 MIDI 消息,包括其端口、状态和数据。它提供了创建、分析和操作 MIDI 消息的实用方法。
该类的源文件位于 os/framework/MidiPacket.h
Enumerations
EMidiStatus
Represents MIDI message types. Includes various MIDI commands like NoteOn, NoteOff, and SysEx.
Values:
None: No status.NoteOff: Note Off event.NoteOn: Note On event.AfterTouch: Aftertouch event.ControlChange: Control Change event.ProgramChange: Program Change event.ChannelPressure: Channel Pressure event.PitchChange: Pitch Bend Change event.MTCQuarterFrame: MIDI Time Code Quarter Frame event.SongPosition: Song Position Pointer event.SongSelect: Song Select event.TuneRequest: Tune Request event.Sync: MIDI Sync event.Tick: MIDI Tick event.Start: MIDI Start event.Continue: MIDI Continue event.Stop: MIDI Stop event.ActiveSense: Active Sensing event.Reset: Reset event.SysExData: SysEx Data event.SysExEnd: SysEx End event.
EMidiPortID
Represents MIDI port identifiers.
Values:
MIDI_PORT_EACH_CLASS: Default MIDI out mode, sends to the first port of each class.MIDI_PORT_ALL: Send to all ports.MIDI_PORT_USB: USB MIDI port.MIDI_PORT_PHYSICAL: Physical MIDI port.MIDI_PORT_BLUETOOTH: Bluetooth MIDI port.MIDI_PORT_WIRELESS: Wireless MIDI port.MIDI_PORT_RTP: Real-Time Protocol (RTP) MIDI port.MIDI_PORT_DEVICE_CUSTOM: Custom device MIDI port.MIDI_PORT_SYNTH: Synthesizer MIDI port.MIDI_PORT_INVALID: Invalid MIDI port.
Constructors
Default Constructor
MidiPacket();
Creates an empty MIDI packet with MIDI_PORT_INVALID and no data.