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.
Inherited Members
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> |