Take latest recording
This commit is contained in:
parent
363a8ade3f
commit
36008180ae
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user