From 17d9252d10d2a4a35075394b4664d35387516be6 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 15 Feb 2020 20:10:08 +0100 Subject: [PATCH] Start the microphone later --- voicegardens/static/voicegardens.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index ef0f92d..5c92814 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -143,7 +143,6 @@ function setupRecording() { * Setup logic for sound recording. **/ microphone = new p5.AudioIn(); - microphone.start(); recorder = new p5.SoundRecorder(); recorder.setInput(microphone); @@ -165,6 +164,8 @@ function setupRecording() { aboutButton = createImg("../static/images/ABOUT-BW.png"); aboutButton.mousePressed(goToAbout); aboutButton.class("button about"); + + microphone.start(); } class GeneratedShape {