Class TimedEventData
Holds the data for a TimedEvent construction.
Inherited Members
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:
- track chunk
- custom chunk
- track chunk
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 |