p5.js-website icon indicating copy to clipboard operation
p5.js-website copied to clipboard

p5.Oscillator reference page, oscillator class undefined

Open SpringySpring04 opened this issue 1 year ago • 1 comments

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

SpringySpring04 avatar Sep 16 '24 00:09 SpringySpring04

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

limzykenneth avatar Oct 08 '24 14:10 limzykenneth