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.
2 parents df60b72 + 9555aeb commit 052ec4fCopy full SHA for 052ec4f
src/fft.js
@@ -401,7 +401,7 @@ define(function(require) {
401
*
402
403
*function setup(){
404
- * cnv = createCanvas(800,400);
+ * cnv = createCanvas(100,100);
405
* sound = new p5.AudioIn();
406
* sound.start();
407
* fft = new p5.FFT();
@@ -421,7 +421,6 @@ define(function(require) {
421
* fill(0,255,0); // spectrum is green
422
423
* //draw the spectrum
424
- *
425
* for (var i = 0; i< spectrum.length; i++){
426
* var x = map(log(i), 0, log(spectrum.length), 0, width);
427
* var h = map(spectrum[i], 0, 255, 0, height);
@@ -445,8 +444,8 @@ define(function(require) {
445
444
* rect(centroidplot, 0, width / spectrum.length, height)
446
* noStroke();
447
* fill(255,255,255); // text is white
448
- * textSize(40);
449
- * text("centroid: "+round(spectralCentroid)+" Hz", 10, 40);
+ * text("centroid: ", 10, 20);
+ * text(round(spectralCentroid)+" Hz", 10, 40);
450
*}
451
* </code></div>
452
*/
0 commit comments