Along with asking questions on the Processing Forum, I watch various Daniel Shiffman videos.
These videos helped me when creating “if statements” for when the user clicks on an object and for the music to play. This video also helped me understand how P5.js works.
Although this was a tutorial for Processing, I was able to understand how the mousePressed function worked. Along with conditional statements.
Initially was thinking that I would make each song data visualisation a seperate .js file but that was proving problematic therefore I decided to make them objects.
By putting all the data of the songs as separate objects, that help keep my code neat and tidy. It also helped when allocating conditions to them.
For the music code, I used this code from the P5 examples page and altered it for my visualisation.
Finally I watched this video because I intend to upload my sketch onto the internet for people to see.