diff --git a/src/helpers.js b/src/helpers.js index 76447e63..be9d1da9 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -29,7 +29,7 @@ define(function (require) { */ p5.prototype.freqToMidi = function(f){ var mathlog2 = Math.log(f/440) / Math.log(2); - var m = Math.round(12*mathlog2)+57; + var m = Math.round(12*mathlog2)+69; return m; }; @@ -200,4 +200,4 @@ define(function (require) { return o; }; -}); \ No newline at end of file +});