Yin(double audioSampleRate, int bufferSize) : this._sampleRate = audioSampleRate, this._threshold = DEFAULT_THRESHOLD, this._yinBuffer = List<double>.filled(bufferSize ~/ 2, 0.0);