Class SysexEvent
Represents a MIDI sysex message
public class SysexEvent : MidiEvent, ICloneable
- Inheritance
-
SysexEvent
- Implements
- Inherited Members
Constructors
SysexEvent()
Creates a new sysex event
public SysexEvent()
SysexEvent(long, byte[])
Creates a new sysex event with the specified payload. Payload data should not include the 0xF0 status byte or the 0xF7 terminator byte.
public SysexEvent(long absoluteTime, byte[] data)
Parameters
Properties
Data
The sysex payload bytes, excluding the leading 0xF0 status byte and the 0xF7 terminator (the same form the constructor accepts). Returns a copy, so mutating it does not affect this event.
public byte[] Data { get; }
Property Value
- byte[]
Methods
Clone()
Creates a deep clone of this MIDI event.
public override MidiEvent Clone()
Returns
Export(ref long, BinaryWriter)
Calls base class export first, then exports the data specific to this event MidiEvent.Export
public override void Export(ref long absoluteTime, BinaryWriter writer)
Parameters
absoluteTimelongwriterBinaryWriter
ReadSysexEvent(BinaryReader)
Reads a sysex message from a MIDI stream
public static SysexEvent ReadSysexEvent(BinaryReader br)
Parameters
brBinaryReaderStream of MIDI data
Returns
- SysexEvent
a new sysex message
ToString()
Describes this sysex message
public override string ToString()
Returns
- string
A string describing the sysex message