Search Results for

    Show / Hide Table of Contents

    Class TimedEventsRandomizerUtilities

    Provides methods to randomize timed events time.
    Inheritance
    Object
    TimedEventsRandomizerUtilities
    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
    [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:

    • midiFile is null.
    • bounds is null.

    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:

    • trackChunk is null.
    • bounds is null.
    • tempoMap is null.

    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:

    • trackChunks is null.
    • bounds is null.
    • tempoMap is null.
    In This Article
    Back to top 2022 / Generated by DocFX