Class GetObjectsUtilities
Inheritance
GetObjectsUtilities
Assembly: Melanchall.DryWetMidi.dll
Syntax
public static class GetObjectsUtilities
Methods
EnumerateObjects(IEnumerable<MidiEvent>, ObjectType, ObjectDetectionSettings)
Extracts objects of the specified types from a collection of
MidiEvent
returning them as a lazy collection.
Declaration
public static IEnumerable<ITimedObject> EnumerateObjects(this IEnumerable<MidiEvent> midiEvents, ObjectType objectType, ObjectDetectionSettings settings = null)
Parameters
Returns
Exceptions
GetObjects(EventsCollection, ObjectType, ObjectDetectionSettings)
Declaration
public static ICollection<ITimedObject> GetObjects(this EventsCollection eventsCollection, ObjectType objectType, ObjectDetectionSettings settings = null)
Parameters
Returns
Type |
Description |
ICollection<ITimedObject> |
Collection of objects of the specified types extracted from eventsCollection .
Objects are ordered by time. |
Exceptions
GetObjects(MidiFile, ObjectType, ObjectDetectionSettings)
Extracts objects of the specified types from a
MidiFile.
Declaration
public static ICollection<ITimedObject> GetObjects(this MidiFile midiFile, ObjectType objectType, ObjectDetectionSettings settings = null)
Parameters
Returns
Type |
Description |
ICollection<ITimedObject> |
Collection of objects of the specified types extracted from midiFile .
Objects are ordered by time. |
Exceptions
GetObjects(TrackChunk, ObjectType, ObjectDetectionSettings)
Extracts objects of the specified types from a
TrackChunk.
Declaration
public static ICollection<ITimedObject> GetObjects(this TrackChunk trackChunk, ObjectType objectType, ObjectDetectionSettings settings = null)
Parameters
Returns
Type |
Description |
ICollection<ITimedObject> |
Collection of objects of the specified types extracted from trackChunk .
Objects are ordered by time. |
Exceptions
GetObjects(IEnumerable<MidiEvent>, ObjectType, ObjectDetectionSettings)
Extracts objects of the specified types from a collection of
MidiEvent.
Declaration
public static ICollection<ITimedObject> GetObjects(this IEnumerable<MidiEvent> midiEvents, ObjectType objectType, ObjectDetectionSettings settings = null)
Parameters
Returns
Type |
Description |
ICollection<ITimedObject> |
Collection of objects of the specified types extracted from midiEvents .
Objects are ordered by time. |
Exceptions
GetObjects(IEnumerable<TrackChunk>, ObjectType, ObjectDetectionSettings)
Extracts objects of the specified types from a collection of
TrackChunk.
Declaration
public static ICollection<ITimedObject> GetObjects(this IEnumerable<TrackChunk> trackChunks, ObjectType objectType, ObjectDetectionSettings settings = null)
Parameters
Returns
Type |
Description |
ICollection<ITimedObject> |
Collection of objects of the specified types extracted from trackChunks .
Objects are ordered by time. |
Exceptions
GetObjects(IEnumerable<ITimedObject>, ObjectType, ObjectDetectionSettings)
Extracts objects of the specified types from a collection of
ITimedObject.
Declaration
public static ICollection<ITimedObject> GetObjects(this IEnumerable<ITimedObject> timedObjects, ObjectType objectType, ObjectDetectionSettings settings = null)
Parameters
Returns
Type |
Description |
ICollection<ITimedObject> |
Collection of objects of the specified types extracted from timedObjects .
Objects are ordered by time. |
Exceptions