Search Results for

    Show / Hide Table of Contents

    Class ChordsQuantizerUtilities

    Provides methods to quantize chords time.
    Inheritance
    Object
    ChordsQuantizerUtilities
    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("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:

    • midiFile is null.
    • grid is null.
    InvalidOperationException

    One of the following errors occured:

    • Chord is going to be moved beyond zero.
    • Chord's end is going to be moved beyond the chord's fixed end.

    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:

    • trackChunk is null.
    • grid is null.
    • tempoMap is null.
    InvalidOperationException

    One of the following errors occured:

    • Chord is going to be moved beyond zero.
    • Chord's end is going to be moved beyond the chord's fixed end.

    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:

    • trackChunks is null.
    • grid is null.
    • tempoMap is null.
    InvalidOperationException

    One of the following errors occured:

    • Chord is going to be moved beyond zero.
    • Chord's end is going to be moved beyond the chord's fixed end.
    In This Article
    Back to top 2022 / Generated by DocFX