p5.js-website
p5.js-website copied to clipboard
p5.Oscillator reference page, oscillator class undefined
Most appropriate sections of the p5.js website?
Reference
What is your operating system?
Windows
Web browser and version
Firefox 129.0.1
Actual Behavior
On the p5.Oscillator page, the Example demonstration is broken. Opening Developer Tools and typing p5.Oscillator returns undefined. The console also throws errors, saying "p5.Oscillator is not a constructor" and "osc is undefined"
Expected Behavior
The demonstration should be able to instantiate a p5.Oscillator and play audio upon user gestures.
Steps to reproduce
- Go to https://p5js.org/reference/p5.sound/p5.Oscillator/
- Click on the small canvas in the Examples section
- No sound output; "
p5.Oscillatoris not a constructor" errors in console
Would you like to work on the issue?
Unfortunately I can't
Thanks for the report @SpringySpring04. The reference for p5.sound is not officially released on the new website yet as we are working through some necessary steps for new release of p5.sound. As linked in the reference, you can use the old website's p5.sound reference instead: https://archive.p5js.org/reference/#/libraries/p5.sound