We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9ac2af commit 2bbf0e8Copy full SHA for 2bbf0e8
src/soundfile.js
@@ -902,14 +902,14 @@ class SoundFile {
902
* let sound,sRate, midiVal;
903
* let midiNotes = [60, 64, 67, 72];
904
* let noteIndex = 0;
905
- * function preload(){
+ * function preload() {
906
* sound = loadSound('assets/beat.mp3');
907
* }
908
*
909
* function setup() {
910
* let cnv = createCanvas(100, 100);
911
* cnv.mousePressed(startSound);
912
- * }
+ * }
913
* function draw() {
914
* background(220);
915
* sRate = sound.rate();
0 commit comments