processing / processing/p5.js-website

p5.Oscillator reference page, oscillator class undefined

Open
#549 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug
Dominant language
MDX
Stars
96
Forks
322
Avg merge
5d 22h
Merged PRs (30d)
8

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the p5.Oscillator reference page and reproduce the broken Example in Firefox, then inspect the browser console for the reported constructor and undefined-variable errors. Trace the example's reference-page source from there; done means the demonstration instantiates p5.Oscillator and plays audio after the documented user gesture without console errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.