Search Results for

    Show / Hide Table of Contents

    Enum ResultTrackChunksCreationPolicy

    Defines a strategy for result track chunks creation when merging MIDI files sequentially. The default value is CreateForEachFile.
    Namespace: Melanchall.DryWetMidi.Tools
    Assembly: Melanchall.DryWetMidi.dll
    Syntax
    public enum ResultTrackChunksCreationPolicy
    Remarks

    Let's see how MinimizeCount option works. For example, we have three files with following track chunks:

    • A, B and C;
    • D and E;
    • F, G, H, I and J.

    Merging these files will lead to following result track chunks creation and usage:

    1. Three track chunks (1, 2, 3) are created with the contents of A, B, C;
    2. Content of D is written to the chunk 1; content of E is written to the chunk 2;
    3. Content of F is written to the chunk 1; content of G is written to the chunk 2; content of H is written to the chunk 3; two new track chunks (4, 5) are created with the contents of I and J.

    Fields

    Name Description
    CreateForEachFile Each track chunk of every file is being merged will lead to separate track chunk creation in the result file.
    MinimizeCount Track chunks will be reused.
    See Also
    MergeSequentially(IEnumerable<MidiFile>, SequentialMergingSettings)
    Merger
    In this article
    Back to top 2025 / Generated by DocFX