Class ChordsQuantizerUtilities
Provides methods to quantize chords time.
Inherited Members
Namespace: Melanchall.DryWetMidi.Tools
Assembly: Melanchall.DryWetMidi.dll
Syntax
[Obsolete("OBS13: Use Quantizer class. More info: https://melanchall.github.io/drywetmidi/obsolete/obsolete.html#obs13.")]
public static class ChordsQuantizerUtilities
Methods
QuantizeChords(MidiFile, IGrid, ChordsQuantizingSettings)
Quantizes chords contained in the specified MidiFile.
Declaration
[Obsolete("OBS13: Use Quantizer class. More info: https://melanchall.github.io/drywetmidi/obsolete/obsolete.html#obs13.")]
public static void QuantizeChords(this MidiFile midiFile, IGrid grid, ChordsQuantizingSettings settings = null)
Parameters
Type | Name | Description |
---|---|---|
MidiFile | midiFile | MidiFile to quantize chords in. |
IGrid | grid | Grid to quantize objects by. |
ChordsQuantizingSettings | settings | Settings according to which chords should be quantized. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
One of the following errors occured:
|
InvalidOperationException |
One of the following errors occured:
|
QuantizeChords(TrackChunk, IGrid, TempoMap, ChordsQuantizingSettings)
Quantizes chords contained in the specified TrackChunk.
Declaration
[Obsolete("OBS13: Use Quantizer class. More info: https://melanchall.github.io/drywetmidi/obsolete/obsolete.html#obs13.")]
public static void QuantizeChords(this TrackChunk trackChunk, IGrid grid, TempoMap tempoMap, ChordsQuantizingSettings settings = null)
Parameters
Type | Name | Description |
---|---|---|
TrackChunk | trackChunk | TrackChunk to quantize chords in. |
IGrid | grid | Grid to quantize objects by. |
TempoMap | tempoMap | Tempo map used to calculate times to quantize by. |
ChordsQuantizingSettings | settings | Settings according to which chords should be quantized. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
One of the following errors occured:
|
InvalidOperationException |
One of the following errors occured:
|
QuantizeChords(IEnumerable<TrackChunk>, IGrid, TempoMap, ChordsQuantizingSettings)
Quantizes chords contained in the specified collection of TrackChunk.
Declaration
[Obsolete("OBS13: Use Quantizer class. More info: https://melanchall.github.io/drywetmidi/obsolete/obsolete.html#obs13.")]
public static void QuantizeChords(this IEnumerable<TrackChunk> trackChunks, IGrid grid, TempoMap tempoMap, ChordsQuantizingSettings settings = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TrackChunk> | trackChunks | Collection of TrackChunk to quantize chords in. |
IGrid | grid | Grid to quantize objects by. |
TempoMap | tempoMap | Tempo map used to calculate times to quantize by. |
ChordsQuantizingSettings | settings | Settings according to which chords should be quantized. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
One of the following errors occured:
|
InvalidOperationException |
One of the following errors occured:
|