Skip to content

Fix missing p5. prefix in Simple Melody App tutorial#1124

Open
aashu2006 wants to merge 2 commits intoprocessing:mainfrom
aashu2006:fix/oscillator-constructor-bug
Open

Fix missing p5. prefix in Simple Melody App tutorial#1124
aashu2006 wants to merge 2 commits intoprocessing:mainfrom
aashu2006:fix/oscillator-constructor-bug

Conversation

@aashu2006
Copy link
Contributor

@aashu2006 aashu2006 commented Feb 1, 2026

Summary

This PR fixes a small bug in the Simple Melody App tutorial and cleans up a few old links.

What changed

  1. Fixed a broken line in the tutorial by changing new Oscillator() to new p5.Oscillator().
    Without this, the code throws an error and the tutorial can’t be completed.

  2. Replaced some old Google Docs links with proper internal links inside the site.

    • Updated files: simple-melody-app.mdx, optimizing-webgl-sketches.mdx, getting-started-with-nodejs.mdx
    • Kept the screen reader link as it is since it’s meant to be external.
  3. Fixed a typo in a section heading (osciallatorsoscillators) and updated the related link.

Testing

  • Checked that new p5.Oscillator() works in the p5.js Web Editor
  • Confirmed the old new Oscillator() line throws an error
  • Made sure all internal links point to the right sections

Fixes a ReferenceError in the simple-melody-app tutorial where Oscillator was used without the p5 namespace, causing the example to fail at runtime.
@aashu2006
Copy link
Contributor Author

Hi, @ksen0. I have updated the PR with the link cleanup and the typo fix, and added the oscillator fix as well. Everything should be good now, thanks for the guidance! 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant