Skip to content

Commit 82e99e8

Browse files
authored
fix a bug in noteToFreq helper function (#605)
1 parent 89e7866 commit 82e99e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function noteToFreq(note) {
8686
if (typeof note !== 'string') {
8787
return note;
8888
}
89-
var wholeNotes = { A: 21, B: 23, C: 24, D: 26, E: 28, F: 29, G: 31 };
89+
var wholeNotes = { A: 33, B: 35, C: 24, D: 26, E: 28, F: 29, G: 31 };
9090
var value = wholeNotes[note[0].toUpperCase()];
9191
var octave = ~~note.slice(-1);
9292
value += 12 * (octave - 1);

0 commit comments

Comments
 (0)