Class MetaEvent
Represents a MIDI file meta event.
Assembly: Melanchall.DryWetMidi.dll
public abstract class MetaEvent : MidiEvent
Constructors
Declaration
Methods
GetContentSize(WritingSettings)
Gets the size of the content of a MIDI meta event.
Declaration
protected abstract int GetContentSize(WritingSettings settings)
Parameters
Type |
Name |
Description |
WritingSettings |
settings |
Settings according to which the event's content must be written. |
Returns
Type |
Description |
int |
Size of the event's content. |
Returns array of status bytes of standard meta events.
Declaration
public static byte[] GetStandardMetaEventStatusBytes()
Returns
Type |
Description |
byte[] |
Array of status bytes of standard meta events. |
ReadContent(MidiReader, ReadingSettings, int)
Reads content of a MIDI meta event.
Declaration
protected abstract void ReadContent(MidiReader reader, ReadingSettings settings, int size)
Parameters
Type |
Name |
Description |
MidiReader |
reader |
Reader to read the content with. |
ReadingSettings |
settings |
Settings according to which the event's content must be read. |
int |
size |
Size of the event's content. |
WriteContent(MidiWriter, WritingSettings)
Writes content of a MIDI meta event.
Declaration
protected abstract void WriteContent(MidiWriter writer, WritingSettings settings)
Parameters
Type |
Name |
Description |
MidiWriter |
writer |
Writer to write the content with. |
WritingSettings |
settings |
Settings according to which the event's content must be written. |