|
| TempoEvent (BinaryReader br, int length) |
| Reads a new tempo event from a MIDI stream.
|
|
| TempoEvent (int microsecondsPerQuarterNote, long absoluteTime) |
| Creates a new tempo event with specified settings.
|
|
override MidiEvent | Clone () |
| Creates a new instance of the TempoEvent class that is a copy of the current instance.
|
|
override string | ToString () |
| Returns a string representation of the object.
|
|
override void | Export (ref long absoluteTime, BinaryWriter writer) |
| Exports the current object to a binary writer, including the microseconds per quarter note.
|
|
| MetaEvent (MetaEventType metaEventType, int metaDataLength, long absoluteTime) |
| Custom constructor for use by derived types, who will manage the data themselves.
|
|
override string | ToString () |
| Returns a string representation of the object, combining the AbsoluteTime and metaEvent properties.
|
|
virtual int | GetAsShortMessage () |
| Returns the short message value calculated based on the channel and command code.
|
|
| MidiEvent (long absoluteTime, int channel, MidiCommandCode commandCode) |
| Creates a MIDI event with specified parameters.
|
|
override string | ToString () |
| Returns a string representation of the current Midi event.
|
|
|
static MetaEvent | ReadMetaEvent (BinaryReader br) |
| Reads a meta event from the provided BinaryReader and returns the corresponding MetaEvent object.
|
|
static MidiEvent | FromRawMessage (int rawMessage) |
| Converts a raw MIDI message to a MidiEvent object.
|
|
static MidiEvent | ReadNextEvent (BinaryReader br, MidiEvent previous) |
| Reads the next MIDI event from the BinaryReader and returns the corresponding MidiEvent.
|
|
static bool | IsNoteOff (MidiEvent midiEvent) |
| Checks if the given MIDI event represents a Note Off message.
|
|
static bool | IsNoteOn (MidiEvent midiEvent) |
| Checks if the provided MIDI event is a Note On event and returns true if the velocity is greater than 0.
|
|
static bool | IsEndTrack (MidiEvent midiEvent) |
| Checks if the provided MIDI event is an end track event.
|
|
static int | ReadVarInt (BinaryReader br) |
| Reads a variable-length encoded integer from the provided BinaryReader and returns the result.
|
|
static void | WriteVarInt (BinaryWriter writer, int value) |
| Writes a variable-length encoded integer to the specified BinaryWriter.
|
|
| MetaEvent () |
| Empty constructor.
|
|
| MidiEvent () |
| Default constructor.
|
|
Represents a MIDI tempo event.
override void NAudio.Midi.TempoEvent.Export |
( |
ref long | absoluteTime, |
|
|
BinaryWriter | writer ) |
|
inlinevirtual |
Exports the current object to a binary writer, including the microseconds per quarter note.
- Parameters
-
absoluteTime | The absolute time value. |
writer | The binary writer to which the object is exported. |
This method exports the current object to the specified binary writer, including the microseconds per quarter note. It first calls the base class's Export method to export the base object, then writes the microseconds per quarter note to the writer in little-endian format using three bytes.
Reimplemented from NAudio.Midi.MetaEvent.