Class RestsUtilities
Provides methods to get rests between different objects.
Inheritance
RestsUtilities
Assembly: Melanchall.DryWetMidi.dll
Syntax
public static class RestsUtilities
Methods
GetRests(IEnumerable<ITimedObject>, RestDetectionSettings)
Returns rests between objects within the specified collection according to
the provided settings. Rests in the result collection are ordered by time.
Declaration
public static ICollection<Rest> GetRests(this IEnumerable<ITimedObject> timedObjects, RestDetectionSettings settings = null)
Parameters
Returns
Type |
Description |
ICollection<Rest> |
Collection of rests between objects within timedObjects . |
Exceptions
WithRests(IEnumerable<ITimedObject>, RestDetectionSettings)
Returns a collection of the specified objects and rests between them according to
the provided settings. Objects (including rests) in the result collection are
ordered by time.
Declaration
public static IEnumerable<ITimedObject> WithRests(this IEnumerable<ITimedObject> timedObjects, RestDetectionSettings settings = null)
Parameters
Returns
Exceptions