From 6ba3e6e6aaeb9a1ad069b2cfc793392ad0e0c0a4 Mon Sep 17 00:00:00 2001 From: Aman Ullah Date: Wed, 5 Aug 2026 23:36:39 +0500 Subject: [PATCH] Remove bundled p5.sound from complete library zip p5.sound is now a separately maintained library (https://www.jsdelivr.com/package/npm/p5.sound) and the bundled lib/addons/p5.sound.js was a stale v1.0.1 build (2021) incompatible with the 2.x core, causing 'registerMethod is not a function' errors. The website download page now links to the current p5.sound CDN build instead (processing/p5.js-website#1560). Resolves #9037 --- contributor_docs/release_process.md | 2 +- lib/README.txt | 19 +- lib/addons/p5.sound.js | 12267 -------------------------- lib/addons/p5.sound.min.js | 3 - lib/empty-example/index.html | 6 +- 5 files changed, 8 insertions(+), 12289 deletions(-) delete mode 100644 lib/addons/p5.sound.js delete mode 100644 lib/addons/p5.sound.min.js diff --git a/contributor_docs/release_process.md b/contributor_docs/release_process.md index 6c42a5575d..030fb1f7fb 100644 --- a/contributor_docs/release_process.md +++ b/contributor_docs/release_process.md @@ -50,7 +50,7 @@ Once triggered, it will run the following steps: 4. Update website files 1. Clone the website repository 2. Copy `data.json` and `data.min.json` to the right location - 3. Copy `p5.min.js` and `p5.sound.min.js` to the right location + 3. Copy `p5.min.js` to the right location 4. Update `data.yml` file with latest version number 5. Update `en.json` file based on `data.min.json` 6. Commit and push the changes back to the website repository diff --git a/lib/README.txt b/lib/README.txt index b2116cd872..5a0b370e8b 100644 --- a/lib/README.txt +++ b/lib/README.txt @@ -6,13 +6,8 @@ You have downloaded the complete p5.js library ZIP file, yay! * p5.js file * p5.min.js file -* addons folder - * p5.sound.js - * p5.sound.min.js * empty-example folder * index.html - * p5.js - * p5.sound.js * sketch.js ## p5.js @@ -23,21 +18,17 @@ This file stores the complete p5.js library. It is easy to read by humans, so fe This file is a minified version of the p5.js file. It is a lighter version, with the same functionalities, but smaller file size. This minified version is harder to read for humans, and does not include the friendly error system. -## addons folder +## Sound support -The addons folder includes additional p5.js related libraries, in both original versions and minified versions. - -### p5.sound.js, p5.sound.min.js - -p5.sound extends p5.js with Web Audio functionality including audio input, playback, analysis, and synthesis. +p5.sound is maintained as a separate library from p5.js and is no longer included in this download. If your sketch needs sound, visit https://p5js.org/download/ for a CDN link and instructions on adding p5.sound to your project. ## empty-example folder -This is an empty example of a website. The folder includes the file for the website, index.html, the p5.js library, other related p5.js libraries, and a template starting point for your p5.js sketch, called sketch.js. +This is an empty example of a website. The folder includes the file for the website, index.html, the p5.js library, and a template starting point for your p5.js sketch, called sketch.js. ### index.html -index.html is a template for an HTML file. This index.html first imports the libraries included in the folder (p5.js, p5.sound.js) then loads and executes the file sketch.js which is where you can write your own code. +index.html is a template for an HTML file. This index.html first imports the p5.js library, then loads and executes the file sketch.js which is where you can write your own code. ### sketch.js @@ -63,4 +54,4 @@ https://p5js.org/community/ # License -The p5.js library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 2.1. +The p5.js library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, version 2.1. \ No newline at end of file diff --git a/lib/addons/p5.sound.js b/lib/addons/p5.sound.js deleted file mode 100644 index f1fb294426..0000000000 --- a/lib/addons/p5.sound.js +++ /dev/null @@ -1,12267 +0,0 @@ -/** [p5.sound] Version: 1.0.1 - 2021-05-25 */ - /** - *

p5.sound extends p5 with Web Audio functionality including audio input, - * playback, analysis and synthesis. - *

- *