Class TrackChunkUtilities
Utility methods for TrackChunk.
Inherited Members
Namespace: Melanchall.DryWetMidi.Interaction
Assembly: Melanchall.DryWetMidi.dll
Syntax
public static class TrackChunkUtilities
Methods
ShiftEvents(TrackChunk, ITimeSpan, TempoMap)
Shifts events forward inside TrackChunk by the specified distance.
Declaration
public static void ShiftEvents(this TrackChunk trackChunk, ITimeSpan distance, TempoMap tempoMap)
Parameters
Type | Name | Description |
---|---|---|
TrackChunk | trackChunk | TrackChunk containing events to shift. |
ITimeSpan | distance | Distance to shift events by. |
TempoMap | tempoMap | Tempo map used for internal distance conversions. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | One of the following errors occurred:
|
ShiftEvents(IEnumerable<TrackChunk>, ITimeSpan, TempoMap)
Shifts events forward inside collection of TrackChunk by the specified distance.
Declaration
public static void ShiftEvents(this IEnumerable<TrackChunk> trackChunks, ITimeSpan distance, TempoMap tempoMap)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TrackChunk> | trackChunks | Collection of TrackChunk containing events to shift. |
ITimeSpan | distance | Distance to shift events by. |
TempoMap | tempoMap | Tempo map used for internal distance conversions. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | One of the following errors occurred:
|