Search Results for

    Show / Hide Table of Contents

    Class TrackChunkUtilities

    Utility methods for TrackChunk.
    Inheritance
    object
    TrackChunkUtilities
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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:

    • trackChunk is null.
    • distance is null.
    • tempoMap is null.

    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:

    • trackChunks is null.
    • distance is null.
    • tempoMap is null.
    In this article
    Back to top 2024 / Generated by DocFX