diff --git a/src/content/text-detail/en/download.mdx b/src/content/text-detail/en/download.mdx index c059ed298b..1ba6b9ab21 100644 --- a/src/content/text-detail/en/download.mdx +++ b/src/content/text-detail/en/download.mdx @@ -5,6 +5,7 @@ import LinkButton from '../../../components/LinkButton/index.astro' import CodeContainerWithCopy from "../../../components/CodeContainer/CodeContainerWithCopy.astro"; import { cdnLibraryUrl, + cdnSoundUrl, fullDownloadUrl, libraryDownloadUrl, minifiedLibraryDownloadUrl, @@ -21,8 +22,7 @@ This link redirects you to the p5.js Editor online so you can begin using p5.js p5.js Editor ### Download the Complete Library -This is a download containing the p5.js library file, the p5.sound addon, and an example project. It does not contain an editor. Visit [Get Started](/tutorials/get-started) to learn how to setup a p5.js project. - +This is a download containing the p5.js library file and an example project. It does not contain an editor. If this download includes a p5.sound.js file, please disregard it — it is an outdated version incompatible with p5.js 2.x. See below for up-to-date sound support instructions. Complete Library ### Download Single Files @@ -33,6 +33,11 @@ These are downloads or links to the p5.js library file. No additional contents a p5.min.js +### Sound Support with p5.sound.js +p5.sound.js is maintained as a separate library from p5.js. If your sketch needs sound, add p5.sound.js to your project **in addition to** p5.js using the CDN link below, or visit [p5.sound.js on jsDelivr](https://www.jsdelivr.com/package/npm/p5.sound) for other versions and download options. + +{cdnSoundUrl} + ## Use p5.js from CDN All versions of p5.js are hosted on a content delivery network (CDN), a geographically distributed group of servers. There are a couple different ways to access the JavaScript library from your code editor. @@ -51,4 +56,4 @@ Use the following URL if you'd like to ensure that you're always accessing the l ### Other Versions of p5.js -If you'd like to access an earlier version of p5.js, you can look up the corresponding URL on [p5.js' jsDelivr webpage](https://www.jsdelivr.com/package/npm/p5). +If you'd like to access an earlier version of p5.js, you can look up the corresponding URL on [p5.js' jsDelivr webpage](https://www.jsdelivr.com/package/npm/p5). \ No newline at end of file