processing / p5.js-website

New p5.js website!
http://p5js.org
MIT License
19 stars 89 forks source link

p5.Oscillator reference page, oscillator class undefined #549

Open SpringySpring04 opened 2 months ago

SpringySpring04 commented 2 months ago

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

  1. Go to https://p5js.org/reference/p5.sound/p5.Oscillator/
  2. Click on the small canvas in the Examples section
  3. No sound output; "p5.Oscillator is not a constructor" errors in console

Would you like to work on the issue?

Unfortunately I can't

limzykenneth commented 1 month ago

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