Skip to content

Commit 0c2fe51

Browse files
authored
Fix error of noteToFreq() in p5.sound.js
Whole note A and B should belongs to the next octave
1 parent c2343ba commit 0c2fe51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/addons/p5.sound.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,8 +895,8 @@ function noteToFreq(note) {
895895
}
896896

897897
var wholeNotes = {
898-
A: 21,
899-
B: 23,
898+
A: 33,
899+
B: 35,
900900
C: 24,
901901
D: 26,
902902
E: 28,

0 commit comments

Comments
 (0)