this was just a cool project that I decided to make for some reason. I was bored in History class and this is what I ended up making. The amplitude to the sine wave increases as more loudness is detected. To test it out I recommend searching up a video on youtube and then playing it while you have this tab open. I recommend you use a music video or something like that (by the way if you have headphones you will have to unplug them so that the microphone can pick up the audio). Anyway this was just some test project I was messing around with. Might improve it another time. I put a bunch of notes in the code now.