Browse Source

Remove unecessary function call

main
Luke Murphy 5 years ago
parent
commit
b0556b301b
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 9
      vocoder/static/vocoder.js

9
vocoder/static/vocoder.js

@ -127,13 +127,6 @@ class GeneratedShape {
}
}
function generateNewShape() {
/**
* Create a new p5.js shape.
**/
return new GeneratedShape();
}
function setup() {
/**
* The p5.js initial setup function.
@ -147,7 +140,7 @@ function draw() {
* The p5.js draw loop.
**/
if (newSoundJustRecorded === true) {
shapes.push(generateNewShape());
shapes.push(new GeneratedShape());
newSoundJustRecorded = false;
}

Loading…
Cancel
Save