Take latest recording

This commit is contained in:
Luke Murphy 2020-02-09 16:15:45 +01:00
parent 363a8ade3f
commit 36008180ae
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -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;