MidiPacket Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encapsulates a series of MIDI events.
public class MidiPacket : IDisposable
type MidiPacket = class
interface IDisposable
- Inheritance
-
MidiPacket
- Implements
Remarks
When you consume a MidiPacket (because some data was received) you would use the Bytes property to get access to the underlying Midi data. The actual number of valid bytes is stored in the Length property and you should not read beyond that point.
When you produce MidiPackets, you can either create MidiPacket instances by providing both an IntPtr and a Length parameter to your own buffers, or you can provide a byte array as well as a range within the array that determines where the Midi data is stored.
Constructors
MidiPacket(Int64, Byte[], Int32, Int32) | |
MidiPacket(Int64, Byte[]) | |
MidiPacket(Int64, UInt16, IntPtr) |
Fields
Length |
The number of bytes in the Bytes array |
TimeStamp |
Time for the event, use zero to mean now. |
Properties
Bytes |
Methods
Dispose() |
Releases the resources used by the MidiPacket object. |
Dispose(Boolean) |
Releases the resources used by the MidiPacket object. |
Finalize() |
Finalizer for the MidiPacket object |