I Need Sound --especially in creative coding
Written on January 23rd , 2025 by Dialekti Valsamou-Stanislawski
I Need Sound is a simple interactive p5.js sketch made during an intro to creative coding using p5.js during my my MA in Digital Arts at ASFA. It visualizes live audio input by using the microphone and Fast Fourier Transform (FFT) analysis to render a dynamic array of colorful frequency bars when sound is present.
Allow it access to your microphone and produce some sound to check it out. Click here for the code. Use the F key on your keyboard for fullscreen.
I suggest you try these simple tests to see how the sounds you can make produce different frequencies:
- whistle – whistle a simple melody like do-re-mi or
- sing, and specifically sing the melody you previously whistled.
Isn’t it interesting how whistling and singing produce very different frequencies, for what sounds like the same melody to us?
Loading p5.js sketch...