diff --git a/src/detectors/yin.js b/src/detectors/yin.js index 1629692..0bc9fc7 100644 --- a/src/detectors/yin.js +++ b/src/detectors/yin.js @@ -39,7 +39,6 @@ module.exports = function(config = {}) { // Set buffer size to the highest power of two below the provided buffer's length. let bufferSize; for (bufferSize = 1; bufferSize < float32AudioBuffer.length; bufferSize *= 2); - bufferSize /= 2; // Set up the yinBuffer as described in step one of the YIN paper. const yinBufferLength = bufferSize / 2; @@ -141,4 +140,4 @@ module.exports = function(config = {}) { return sampleRate / betterTau; }; -}; \ No newline at end of file +};