Search Results for

    Show / Hide Table of Contents

    Class SplitByObjectsSettings

    Defines how a MIDI file should be split by objects using SplitByObjects(MidiFile, ObjectType, SplitByObjectsSettings, ObjectDetectionSettings) method. More info in the MIDI file splitting: SplitByObjects article.
    Inheritance
    object
    SplitByObjectsSettings
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Melanchall.DryWetMidi.Tools
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public sealed class SplitByObjectsSettings

    Properties

    AllFilesObjectsFilter

    Gets or sets a predicate to filter out objects that should be copied to each new file (i.e. for those objects WriteToAllFilesPredicate returns true for). The default value is null which means no filter applied.
    Declaration
    public Predicate<ITimedObject> AllFilesObjectsFilter { get; set; }
    Property Value
    Type Description
    Predicate<ITimedObject>

    Filter

    Gets or sets a predicate to filter objects out. The default value is null which means no filter applied.
    Declaration
    public Predicate<ITimedObject> Filter { get; set; }
    Property Value
    Type Description
    Predicate<ITimedObject>

    KeySelector

    Gets or sets a method to get the ID (key) of an object. The default value is null which means the default key selector will be used.
    Declaration
    public Func<ITimedObject, object> KeySelector { get; set; }
    Property Value
    Type Description
    Func<ITimedObject, object>

    WriteToAllFilesPredicate

    Gets or sets a predicate to determine whether an object should be copied to each new file or not. The default value is null which means no one object will be copied to each file.
    Declaration
    public Predicate<ITimedObject> WriteToAllFilesPredicate { get; set; }
    Property Value
    Type Description
    Predicate<ITimedObject>

    See Also

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