Skip to content

Fix examples 002+006 and clean up variable declarations in all examples#90

Open
nbogie wants to merge 2 commits into
processing:mainfrom
nbogie:nb-fix-and-tidy-examples
Open

Fix examples 002+006 and clean up variable declarations in all examples#90
nbogie wants to merge 2 commits into
processing:mainfrom
nbogie:nb-fix-and-tidy-examples

Conversation

@nbogie

@nbogie nbogie commented Jun 12, 2026

Copy link
Copy Markdown
Contributor
  1. fixed examples 002 and 006-EnvelopeAndfilter
  • 002: was missing await for loadSound - my mistake during upgrade to p5v2.
  • 006: An intended (undeclared) variable name noise was colliding with p5's global fn of same name.
  1. Made a small sweep of examples to tidy the following:
  • Declare all variables (locally, if possible).
  • Remove unused variables.
  • use "noiseGen" var name instead of "noise", to avoid possible collision/confusion with p5's noise().
  • move towards consistent common variable names (e.g. "reverb" over "verb", "delay" over "del")

Testing status:

These local examples now ALL reliably pass against chromium.

nbogie added 2 commits June 12, 2026 16:36
002 was missing await for loadSound
006 intended (undeclared) variable name `noise` was colliding with p5's global fn of same name.

Slight tidy of 006 to declare all variables.
…ed, (and more in details):

* Declare all variables (locally, if possible).
* Remove unused variables.
* move towards consistent common variable names (e.g. "reverb" over "verb", "delay" over "del")
* use "noiseGen" var name instead of "noise", to avoid possible collision/confusion with p5's noise()
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