Class MidiToken
Represents a single MIDI token from a MIDI file.
Inherited Members
Namespace: Melanchall.DryWetMidi.Core
Assembly: Melanchall.DryWetMidi.dll
Syntax
public abstract class MidiToken
Constructors
MidiToken(MidiTokenType)
Initializes a new instance of the MidiToken with the
specified token type.
Declaration
protected MidiToken(MidiTokenType tokenType)
Parameters
| Type | Name | Description |
|---|---|---|
| MidiTokenType | tokenType | The type of a MIDI token. |
Properties
Length
Gets the length of a MIDI token in bytes within an input data stream.
Declaration
public long Length { get; }
Property Value
| Type | Description |
|---|---|
| long |
Position
Gets the position of a MIDI token within an input data stream.
Declaration
public long Position { get; }
Property Value
| Type | Description |
|---|---|
| long |
TokenType
Gets the type of a MIDI token.
Declaration
public MidiTokenType TokenType { get; }
Property Value
| Type | Description |
|---|---|
| MidiTokenType |