Skip to content

Commit 6f2d824

Browse files
Merge branch 'main' of https://github.com/processing/p5.js-sound into improving-tests-Gsoc
2 parents 1b60962 + a74dd7e commit 6f2d824

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
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);

src/polysynth.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ class PolySynth {
149149
* }
150150
* </code></div>
151151
*/
152-
play(note, velocity, secondsFromNow, susTime = 1) {
152+
play(note, velocity = 0.1, secondsFromNow = 0, susTime = 1) {
153153
this.noteAttack(note, velocity, secondsFromNow);
154154
this.noteRelease(note, secondsFromNow + susTime);
155155
}

0 commit comments

Comments
 (0)