Class EscapeSysExEvent
Represents an "escape" system exclusive event which defines an escape sequence.
Inherited Members
Namespace: Melanchall.DryWetMidi.Core
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class EscapeSysExEvent : SysExEvent
Remarks
"Escape" system exclusive events start with 0xF7 byte and don't have a terminal 0xF7
byte that is required for normal sysex events.
When an "escape" sysex event is encountered whilst reading a MIDI file, its interpretation
(SysEx packet or escape sequence) is determined as follows:
- When an event with 0xF0 status but lacking a terminal 0xF7 is encountered, then this is the
first of a Casio-style multi-packet message, and a flag (boolean variable) should be set to
indicate this.
- If an event with 0xF7 status is encountered whilst this flag is set, then this is a continuation
event (a system exclusive packet, one of many). If this event has a terminal 0xF7, then it is
the last packet and flag should be cleared.
- If an event with 0xF7 status is encountered whilst flag is clear, then this event is an escape sequence.
Constructors
EscapeSysExEvent()
Initializes a new instance of the EscapeSysExEvent.
Declaration
public EscapeSysExEvent()
EscapeSysExEvent(byte[])
Initializes a new instance of the EscapeSysExEvent with the
specified data.
Declaration
public EscapeSysExEvent(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
byte[] | data | Data of the "escape" sysex event. |
Methods
CloneEvent()
Clones event by creating a copy of it.
Declaration
protected override MidiEvent CloneEvent()
Returns
Type | Description |
---|---|
MidiEvent | Copy of the event. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents the current object. |