From 2b3c235b5031392536f3f51e9359f95be30378b4 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sun, 9 Feb 2020 12:44:38 +0100 Subject: [PATCH] Store recording on the shape --- voicegardens/static/voicegardens.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index b4e8dc1..6caa133 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -238,6 +238,9 @@ class GeneratedShape { this.destX = random(windowWidth); this.destY = random(windowHeight); + // the sound recording attached to this shape + this.recording = recording; + this.initialise(); }