From 83c436b656bce2cc099002516e9aa00bdd7bf620 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 15 Feb 2020 11:00:16 +0100 Subject: [PATCH] Handle really long recordings --- voicegardens/static/voicegardens.js | 1 + 1 file changed, 1 insertion(+) diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index 53248ed..168de7c 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -255,6 +255,7 @@ class GeneratedShape { // The distance between the xs and ys influencing the size of the shape. // The randomXs, randomYs also influence the shape size as they are added // when drawing the space between xs and ys. + if (this.soundDuration > 10) this.soundDuration = this.soundDuration / 10; this.radius = ceil(this.soundDuration * 40); // ???