Skip to content

Commit ccc07a9

Browse files
committed
update an example
1 parent 914ab25 commit ccc07a9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/_monosynth_basic/sketch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function setup() {
1414

1515
function mousePressed() {
1616
// pick a random midi note
17-
var midiVal = round( random(50,72) );
17+
var midiVal = midiToFreq(round( random(50,72) ));
1818
monoSynth.triggerAttack(midiVal, random() );
1919
}
2020

0 commit comments

Comments
 (0)