Old p5.sound + p5 2.0 throws an error, but it's very hard to switch #3513
Labels
Awaiting Maintainer Approval
Needs review from a maintainer before moving forward
Bug
Error or unexpected behaviors
p5.js version
2.x
What is your operating system?
Mac OS
Web browser and version
Firefox
Actual Behavior
Currently, if you switch the p5 version to 2.0 and then run the default sketch, you get this error in the browser console:
This is coming from the old p5.sound, made for 1.x. However, there isn't a way to easily switch it to the new p5.sound. Turning it off and on again uses the old p5.sound still, since we currently try to restore whatever the original version was in a sketch:
Definitely not obvious, but if you turn off p5.sound, save, and reload, and then turn it back on, THEN it turns on the new p5.sound which works with 2.0.
Expected Behavior
I'm not sure what the best way forward here is, I'd appreciate your input @ksen0 and @raclim! Some options I can think of:
Steps to reproduce
The text was updated successfully, but these errors were encountered: