I created a sketch using a slider to control the volume of the song thats playing. I had used different variable to create the slider and amplitude. I also had added another file called loadSound to load the song that I wanted to play. If you press the play button then the song starts to play and if you pressed on the sketch itself then the song stops and when the music gets louder the background changes to red. One challenge that I faced was that I did not have enough time to create multiple sliders and add more music but other than that it was a good sketch.
https://editor.p5js.org/cfequiere@marymountnyc.org/sketches/Sk0rFW1kN

Comments