diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index f4796e6..d85098d 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -239,7 +239,7 @@ class GeneratedShape { this.destY = random(windowHeight); // the sound recording attached to this shape - this.recording = recording; + this.recording; // the shape that was last collided with this.lastCollidedShape; @@ -451,6 +451,7 @@ function draw() { // generate a new shape after a sound recording if (newSoundJustRecorded === true) { let newShape = new GeneratedShape(); + newShape.recording = recording; shapes.push(newShape); addToFooterArchive(newShape); newSoundJustRecorded = false;