A friend (He’s a musician and he can program a little.) who saw my three.js examples asked me if I could also include a music recording with the microphone.
Since I’m not musical, I never looked afterwards.
I believe you’re confusing the capabilities of Three.JS. It’s a 3D graphics library, it does not grant you access to the microphone, nor does it record audio.
I believe what you’re looking for is this: Recording Audio from the User or this: Capturing audio in HTML5. These tutorials use the Web Audio API, not WebGL or Three.JS. Once you get access to the microphone’s input, and its corresponding waveform, then you can bring in Three.JS to make animations with it.
Keep in mind that getting microphone access has security and privacy implications, and browsers will not grant access without permission from the user. This might affect many users’ experiences if they don’t consent or if they don’t have a microphone.