Class Sanitizer
Provides a way to sanitize a MIDI file applying different options. More info in the
Sanitizer article.
Inherited Members
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 . |