YIN class

Constructors

YIN(int audioSampleRate, int bufferSize)

Properties

audioBufferFFT List<double>
  • Holds the FFT data, twice the length of the audio buffer.
  • read / write
    DEFAULT_BUFFER_SIZE int
  • The default size of an audio buffer (in samples).
  • final
    DEFAULT_THRESHOLD double
  • The default YIN threshold value. Should be around 0.10~0.15. See YIN
    • paper for more information.
  • final
    hashCode int
    The hash code for this object.
    read-onlyinherited
    kernel List<double>
  • Half of the data, disguised as a convolution kernel.
  • read / write
    runtimeType Type
    A representation of the runtime type of the object.
    read-onlyinherited
    sampleRate int
  • The audio sample rate. Most audio has a sample rate of 44.1kHz.
  • read / write
    threshold double
  • The actual YIN threshold.
  • read / write
    yinBuffer List<double>
  • The buffer that stores the calculated values. It is exactly half the size
    • of the input buffer.
  • read / write
    yinStyleACF List<double>
  • Buffer to allow convolution via complex multiplication. It calculates the auto correlation function (ACF).
  • read / write

    Methods

    absoluteThreshold() int
  • Implements step 4 of the AUBIO_YIN paper.
  • cumulativeMeanNormalizedDifference() → void
  • The cumulative mean normalized difference function as described in step 3
    • of the YIN paper.
    • yinBuffer0 == yinBuffer1 = 1
  • difference(dynamic audioBuffer) → void
    getPitch(dynamic audioBuffer) double
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a non-existent method or property is accessed.
    inherited
    parabolicInterpolation(int tauEstimate) → dynamic
  • Implements step 5 of the AUBIO_YIN paper. It refines the estimated tau
  • toString() String
    A string representation of this object.
    inherited

    Operators

    operator ==(Object other) bool
    The equality operator.
    inherited