Search Results for

    Show / Hide Table of Contents

    Class TimedEventData

    Holds the data for a TimedEvent construction.
    Inheritance
    object
    TimedEventData
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Melanchall.DryWetMidi.Interaction
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public sealed class TimedEventData

    Properties

    Event

    Gets a raw MIDI event.
    Declaration
    public MidiEvent Event { get; }
    Property Value
    Type Description
    MidiEvent

    EventIndex

    Gets the index of the Event within an events collection.
    Declaration
    public int EventIndex { get; }
    Property Value
    Type Description
    int

    EventsCollectionIndex

    Gets the index of events collection where Event is placed.
    Declaration
    public int EventsCollectionIndex { get; }
    Property Value
    Type Description
    int
    Remarks
    Events collection means either TrackChunk or EventsCollection (which can be obtained via Events). Note that index is from 0 to events collections count minus 1. Thus if, for example, a MIDI file has following chunks:
    1. track chunk
    2. custom chunk
    3. track chunk
    an event from the last chunk will have EventsCollectionIndex set to 1, because custom chunk is not treated as events collection and therefore doesn't take part in indexing.

    Time

    Gets the absolute time of the Event.
    Declaration
    public long Time { get; }
    Property Value
    Type Description
    long

    See Also

    TimedEventDetectionSettings
    TimedEventsManagingUtilities
    In this article
    Back to top 2024 / Generated by DocFX