Browse Source

Use sound logic to play when entering

main
Luke Murphy 5 years ago
parent
commit
22351bb4eb
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 2
      voicegardens/static/voicegardens.js

2
voicegardens/static/voicegardens.js

@ -156,7 +156,7 @@ function gardenShapes() {
let amp = sound.getPeaks(1)[0] * 100; let amp = sound.getPeaks(1)[0] * 100;
let dur = sound.duration(); let dur = sound.duration();
let shape = new GeneratedShape(sound, amp, dur); let shape = new GeneratedShape(sound, amp, dur);
sound.play(); shape.sound();
shapes.push(shape); shapes.push(shape);
}); });
}) })

Loading…
Cancel
Save