Search Results for

    Show / Hide Table of Contents

    Class Sanitizer

    Provides a way to sanitize a MIDI file applying different options. More info in the Sanitizer article.
    Inheritance
    object
    Sanitizer
    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 static class Sanitizer

    Methods

    Sanitize(MidiFile, SanitizingSettings)

    Sanitizes a MIDI file according to the specified settings. Note that the input file will be transformed instead of returning a new one so be sure you've cloned it if needed.
    Declaration
    public static void Sanitize(this MidiFile midiFile, SanitizingSettings settings = null)
    Parameters
    Type Name Description
    MidiFile midiFile MidiFile to process.
    SanitizingSettings settings Settings which control how the midiFile should be sanitized.
    Exceptions
    Type Condition
    ArgumentNullException midiFile is null.
    In this article
    Back to top 2024 / Generated by DocFX