Hello! I am using p5.js to load a sound file from my assets folder on this project.
I’ve been trying several different methods to get the sound file to load. I’ve used the preload function and I’m now trying to use a callback function and neither has worked. I’m simply left with either a blank screen or a “loading…” screen.
The final goal is a music visualizer so I’m pretty stuck until I can figure this out. Any help is appreciated.
I will have to guess that it is related to the loading of the .js files. Try refreshing the html page and see if doesn’t start playing then. I does for me.
What I would suggest is that you paste an example from the p5.js site that has an event to start the playing. Then you would be certain the libraries have loaded and that your code works.
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.