Well, this is only sound this time. Simply because I kept running into problems and couldn’t make video part work. I’ll do an update when I get it done.
The idea was to create a sort of music library from different decades. Each rectangle acts as a button: once you click on it, the specific track starts playing (they all are taken from an array in a preload function). When you click again, the track stops. You can also play few tracks at once.
I’m also using FFT to show individual audio frequencies when the track is playing as well as Amplitude to analyse volume of each track and change the rectangle size depending on it.