Class SequentialMergingSettings
Specifies settings which control how MIDI files should be merged in sequence.
Inherited Members
Namespace: Melanchall.DryWetMidi.Tools
Assembly: Melanchall.DryWetMidi.dll
Syntax
public sealed class SequentialMergingSettings
Properties
CopyNonTrackChunks
Gets or sets a value indicating whether non-track chunks (like UnknownChunk instances
or custom ones) should be copied to the result file
or not. The default value is
true
.Declaration
public bool CopyNonTrackChunks { get; set; }
Property Value
Type | Description |
---|---|
bool |
DelayBetweenFiles
Gets or sets a delay which should be added between files. The default value is
null
which means no delay will be added.Declaration
public ITimeSpan DelayBetweenFiles { get; set; }
Property Value
Type | Description |
---|---|
ITimeSpan |
FileDurationRoundingStep
Gets or sets a step which should be used to round an input file duration. Calculated
duration affects an offset that will be applied to the data of a next file. The default
value is
null
which means no rounding should be applied. Note that only rounding
up is supported. See RoundUp for more info.Declaration
public ITimeSpan FileDurationRoundingStep { get; set; }
Property Value
Type | Description |
---|---|
ITimeSpan |
FileEndMarkerEventFactory
Gets or sets a factory method to create event that will be placed at the end
of an input MIDI file within the result one.
Declaration
public Func<MidiFile, MidiEvent> FileEndMarkerEventFactory { get; set; }
Property Value
Type | Description |
---|---|
Func<MidiFile, MidiEvent> |
FileStartMarkerEventFactory
Gets or sets a factory method to create event that will be placed at the start
of an input MIDI file within the result one.
Declaration
public Func<MidiFile, MidiEvent> FileStartMarkerEventFactory { get; set; }
Property Value
Type | Description |
---|---|
Func<MidiFile, MidiEvent> |
ResultTrackChunksCreationPolicy
Gets or sets a strategy for result track chunks creation when merging MIDI files sequentially. The
default value is CreateForEachFile.
Declaration
public ResultTrackChunksCreationPolicy ResultTrackChunksCreationPolicy { get; set; }
Property Value
Type | Description |
---|---|
ResultTrackChunksCreationPolicy |
Exceptions
Type | Condition |
---|---|
InvalidEnumArgumentException | value specified an invalid value. |