diff --git a/voicegardens/static/voicegardens.js b/voicegardens/static/voicegardens.js index 94114f0..a5ea52a 100644 --- a/voicegardens/static/voicegardens.js +++ b/voicegardens/static/voicegardens.js @@ -143,6 +143,7 @@ function setupRecording() { * Setup logic for sound recording. **/ microphone = new p5.AudioIn(); + microphone.start(); recorder = new p5.SoundRecorder(); recorder.setInput(microphone); @@ -164,11 +165,6 @@ function setupRecording() { aboutButton = createImg("../static/images/ABOUT-BW.png"); aboutButton.mousePressed(goToAbout); aboutButton.class("button about"); - - microphone.start(); - - getAudioContext(); - userStartAudio(); } class GeneratedShape {