diff --git a/vocoder/static/vocoder.js b/vocoder/static/vocoder.js index b97c1c2..21a4ccd 100644 --- a/vocoder/static/vocoder.js +++ b/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; }