Search Results for

    Show / Hide Table of Contents

    Class ChordsRandomizerUtilities

    Provides methods to randomize chords time.
    Inheritance
    Object
    ChordsRandomizerUtilities
    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 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:

    • midiFile is null.
    • bounds is null.

    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:

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

    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:

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