processing / processing/p5.js-web-editor
Cycling '74 RNBO library not working in editor with CDN
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.7k
- Forks
- 1.7k
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 8
Description
p5.js version
1.9.3
What is your operating system?
Mac OS
Web browser and version
Arc: Version 1.73.0 (56815), Chromium Engine Version 131.0.6778.140
Actual Behavior
https://editor.p5js.org/thomasjohnmartinez/sketches/BUinia5BO
This sketch demonstrates connecting p5.sound.js to the Cycling 74' RNBO audio library (https://rnbo.cycling74.com/learn/getting-the-rnbojs-library).
The code doesn't work due to the RNBO library not being loaded correctly from their CDN and a CORS policy. However, works locally and deployed to the web.
Expected Behavior
A workaround was provided by @raclim here where the library is uploaded directly into the sketch editor: https://editor.p5js.org/raclim/sketches/N853ZgNtf
Steps to reproduce
Steps:
- create a new p5 sketch in the editor
- follow the steps in the "Getting the RNBO library" guide found here: https://rnbo.cycling74.com/learn/getting-the-rnbojs-library
Snippet:
https://editor.p5js.org/thomasjohnmartinez/sketches/BUinia5BO
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No repository file or test is named in the issue. Start by reproducing the RNBO CDN steps in a new p5.js Editor sketch and compare the failing external-library load with the uploaded-library workaround. Done means the RNBO library works from the CDN in the editor without requiring users to upload it directly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100