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