Just start the microphone
This commit is contained in:
parent
ab3da1493b
commit
b113166db8
@ -143,6 +143,7 @@ function setupRecording() {
|
|||||||
* Setup logic for sound recording.
|
* Setup logic for sound recording.
|
||||||
**/
|
**/
|
||||||
microphone = new p5.AudioIn();
|
microphone = new p5.AudioIn();
|
||||||
|
microphone.start();
|
||||||
|
|
||||||
recorder = new p5.SoundRecorder();
|
recorder = new p5.SoundRecorder();
|
||||||
recorder.setInput(microphone);
|
recorder.setInput(microphone);
|
||||||
@ -164,11 +165,6 @@ function setupRecording() {
|
|||||||
aboutButton = createImg("../static/images/ABOUT-BW.png");
|
aboutButton = createImg("../static/images/ABOUT-BW.png");
|
||||||
aboutButton.mousePressed(goToAbout);
|
aboutButton.mousePressed(goToAbout);
|
||||||
aboutButton.class("button about");
|
aboutButton.class("button about");
|
||||||
|
|
||||||
microphone.start();
|
|
||||||
|
|
||||||
getAudioContext();
|
|
||||||
userStartAudio();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class GeneratedShape {
|
class GeneratedShape {
|
||||||
|
Loading…
Reference in New Issue
Block a user