Click to play song in p5.js

edited January 2017 in p5.js Library Questions

Hello, I am making a music based data visualisation using p5.js for a university assignment. I want the user to be able to click on a specific place for the song to play and to click again to pause the song. I have already loaded the song and used the mousePressed function but I am having difficulty applying this to a specific place. Please, could someone help me? I am very new to p5.js. Thank you.

Sign In or Register to comment.