For this weeks project I decided to work with sound and try to connect it to a sketch that we developed in the math for p5 session with Jiwon. My start point was the following sketch:
As part of my exploration I decided to create a toggle button so that I could control de audio and pause it whenever I want to. I started playing with different waves distributed in the vertical space and applying different colors and opacity in order to generate an interesting visualization.
Once I was able to connect the audio with the amplitude of the waves I tried to incorporate more opacity in order for the ellipses to leave a trace and play with the interactivity of the sketch. The final result is a series of waves generated with the “sin” function which also change the colors according to the same function and are mapped in the y axis (the higher in y the bigger the ellipse size). The amplitude of the waves changes according to the amplitude of the sound waves which make it look like they are dancing with the music.