From 0c2fe51c366bb69d5808e9be1a9eea4764bfb938 Mon Sep 17 00:00:00 2001 From: CharlieEL Date: Thu, 21 Aug 2025 13:52:35 +0100 Subject: [PATCH] Fix error of noteToFreq() in p5.sound.js Whole note A and B should belongs to the next octave --- lib/addons/p5.sound.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/addons/p5.sound.js b/lib/addons/p5.sound.js index f7216fca04..d8162f0e19 100644 --- a/lib/addons/p5.sound.js +++ b/lib/addons/p5.sound.js @@ -895,8 +895,8 @@ function noteToFreq(note) { } var wholeNotes = { - A: 21, - B: 23, + A: 33, + B: 35, C: 24, D: 26, E: 28,