Class ChordsRandomizerUtilities
Provides methods to randomize chords time.
Inherited Members
Namespace: Melanchall.DryWetMidi.Tools
Assembly: Melanchall.DryWetMidi.dll
Syntax
[Obsolete("OBS10: Use Quantizer class passing QuantizingSettings with its RandomizingSettings property set. More info: https://melanchall.github.io/drywetmidi/obsolete/obsolete.html#obs10.")]
public static class ChordsRandomizerUtilities
Methods
RandomizeChords(MidiFile, IBounds, ChordsRandomizingSettings)
Randomizes chords contained in the specified MidiFile.
Declaration
[Obsolete("OBS10: Use Quantizer class passing QuantizingSettings with its RandomizingSettings property set. More info: https://melanchall.github.io/drywetmidi/obsolete/obsolete.html#obs10.")]
public static void RandomizeChords(this MidiFile midiFile, IBounds bounds, ChordsRandomizingSettings settings = null)
Parameters
Type | Name | Description |
---|---|---|
MidiFile | midiFile | MidiFile to randomize chords in. |
IBounds | bounds | Bounds to randomize time within. |
ChordsRandomizingSettings | settings | Settings according to which chords should be randomized. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
One of the following errors occured:
|
RandomizeChords(TrackChunk, IBounds, TempoMap, ChordsRandomizingSettings)
Randomizes chords contained in the specified TrackChunk.
Declaration
[Obsolete("OBS10: Use Quantizer class passing QuantizingSettings with its RandomizingSettings property set. More info: https://melanchall.github.io/drywetmidi/obsolete/obsolete.html#obs10.")]
public static void RandomizeChords(this TrackChunk trackChunk, IBounds bounds, TempoMap tempoMap, ChordsRandomizingSettings settings = null)
Parameters
Type | Name | Description |
---|---|---|
TrackChunk | trackChunk | TrackChunk to randomize chords in. |
IBounds | bounds | Bounds to randomize time within. |
TempoMap | tempoMap | Tempo map used to calculate time bounds to randomize within. |
ChordsRandomizingSettings | settings | Settings according to which chords should be randomized. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
One of the following errors occured:
|
RandomizeChords(IEnumerable<TrackChunk>, IBounds, TempoMap, ChordsRandomizingSettings)
Randomizes chords contained in the specified collection of TrackChunk.
Declaration
[Obsolete("OBS10: Use Quantizer class passing QuantizingSettings with its RandomizingSettings property set. More info: https://melanchall.github.io/drywetmidi/obsolete/obsolete.html#obs10.")]
public static void RandomizeChords(this IEnumerable<TrackChunk> trackChunks, IBounds bounds, TempoMap tempoMap, ChordsRandomizingSettings settings = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TrackChunk> | trackChunks | Collection of TrackChunk to randomize chords in. |
IBounds | bounds | Bounds to randomize time within. |
TempoMap | tempoMap | Tempo map used to calculate time bounds to randomize within. |
ChordsRandomizingSettings | settings | Settings according to which chords should be randomized. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
One of the following errors occured:
|