Search Results for

    Show / Hide Table of Contents

    Class ObjectsMergingSettings

    Settings according to which merging should be performed by the Merger. More info in the Merger article.
    Inheritance
    object
    ObjectsMergingSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Melanchall.DryWetMidi.Tools
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public class ObjectsMergingSettings

    Properties

    Filter

    Gets or sets a predicate to filter objects out. If predicate returns true, an object will be processed; if false - it won't. If the property set to null, (default value) all objects will be processed.
    Declaration
    public Predicate<ITimedObject> Filter { get; set; }
    Property Value
    Type Description
    Predicate<ITimedObject>

    ObjectsMergerFactory

    Gets or sets a factory method to create objects merger (see ObjectsMerger) to implement custom merging logic.
    Declaration
    public Func<ILengthedObject, ObjectsMerger> ObjectsMergerFactory { get; set; }
    Property Value
    Type Description
    Func<ILengthedObject, ObjectsMerger>

    OffVelocityMergingPolicy

    Gets or sets a policy which determines how OffVelocity of notes should be merged. The default value is Last.
    Declaration
    public VelocityMergingPolicy OffVelocityMergingPolicy { get; set; }
    Property Value
    Type Description
    VelocityMergingPolicy
    Exceptions
    Type Condition
    InvalidEnumArgumentException value specified an invalid value.

    Tolerance

    Gets or sets maximum distance between two objects to consider them as nearby. The default value is time span of zero length.
    Declaration
    public ITimeSpan Tolerance { get; set; }
    Property Value
    Type Description
    ITimeSpan
    Exceptions
    Type Condition
    ArgumentNullException value is null.

    VelocityMergingPolicy

    Gets or sets a policy which determines how Velocity of notes should be merged. The default value is First.
    Declaration
    public VelocityMergingPolicy VelocityMergingPolicy { get; set; }
    Property Value
    Type Description
    VelocityMergingPolicy
    Exceptions
    Type Condition
    InvalidEnumArgumentException value specified an invalid value.

    See Also

    Merger
    In this article
    Back to top 2024 / Generated by DocFX