From 6d644645977f74c358f88b6a0d577e2f790a6141 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 11 Feb 2020 14:01:27 +0100 Subject: [PATCH] Move properties closer together --- voicegardens/static/voicegardens.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index c907b0a..f5beb0e 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -218,13 +218,12 @@ class GeneratedShape { **/ // sound and properties passed into shape creation this.soundRecorded = soundRecorded; + this.soundDuration = soundDuration; // ensure that erroneous minus amplitudes are at least given 0 if (soundAmplitude < 0) this.soundAmplitude = 0.0; else this.soundAmplitude = soundAmplitude; - this.soundDuration = soundDuration; - // mouse hover awareness for sound playing this.hover = false;