Class TimedEventsRandomizerUtilities
Provides methods to randomize timed events 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 TimedEventsRandomizerUtilities
Methods
RandomizeTimedEvents(MidiFile, IBounds, TimedEventsRandomizingSettings)
Randomizes timed events 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 RandomizeTimedEvents(this MidiFile midiFile, IBounds bounds, TimedEventsRandomizingSettings settings = null)
Parameters
Type | Name | Description |
---|---|---|
MidiFile | midiFile | MidiFile to randomize timed events in. |
IBounds | bounds | Bounds to randomize time within. |
TimedEventsRandomizingSettings | settings | Settings according to which timed events should be randomized. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
One of the following errors occured:
|
RandomizeTimedEvents(TrackChunk, IBounds, TempoMap, TimedEventsRandomizingSettings)
Randomizes timed events 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 RandomizeTimedEvents(this TrackChunk trackChunk, IBounds bounds, TempoMap tempoMap, TimedEventsRandomizingSettings settings = null)
Parameters
Type | Name | Description |
---|---|---|
TrackChunk | trackChunk | TrackChunk to randomize timed events in. |
IBounds | bounds | Bounds to randomize time within. |
TempoMap | tempoMap | Tempo map used to calculate time bounds to randomize within. |
TimedEventsRandomizingSettings | settings | Settings according to which timed events should be randomized. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
One of the following errors occured:
|
RandomizeTimedEvents(IEnumerable<TrackChunk>, IBounds, TempoMap, TimedEventsRandomizingSettings)
Randomizes timed events 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 RandomizeTimedEvents(this IEnumerable<TrackChunk> trackChunks, IBounds bounds, TempoMap tempoMap, TimedEventsRandomizingSettings settings = null)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<TrackChunk> | trackChunks | Collection of TrackChunk to randomize timed events in. |
IBounds | bounds | Bounds to randomize time within. |
TempoMap | tempoMap | Tempo map used to calculate time bounds to randomize within. |
TimedEventsRandomizingSettings | settings | Settings according to which timed events should be randomized. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
One of the following errors occured:
|