Search Results for

    Show / Hide Table of Contents

    Class MidiToken

    Represents a single MIDI token from a MIDI file.
    Inheritance
    object
    MidiToken
    BytesPacketToken
    ChunkHeaderToken
    FileHeaderToken
    MidiEventToken
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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

    See Also

    MidiTokensReader
    In this article
    Back to top 2024 / Generated by DocFX