Skip to content

Commit

Permalink
Update p5.js to v1.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 31, 2024
1 parent a872651 commit 6059b79
Show file tree
Hide file tree
Showing 35 changed files with 138 additions and 11 deletions.
29 changes: 27 additions & 2 deletions public/reference/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2744,6 +2744,14 @@
"line": 10,
"description": "Get the current volume of a sound.",
"is_constructor": 1,
"params": [
{
"name": "smoothing",
"description": "Smooth the amplitude analysis by averaging with the last analysis frame. 0.0 is no time averaging with the last analysis frame.",
"type": "Number",
"optional": true
}
],
"example": [
"\n<div>\n<code>\nlet sound, amp, cnv;\n \nfunction preload() {\n //replace this sound with something local with rights to distribute\n sound = loadSound('/assets/Damscray_DancingTiger.mp3');\n}\n\nfunction setup() {\n cnv = createCanvas(100, 100);\n cnv.mousePressed(playSound);\n textAlign(CENTER);\n fill(255);\n amp = new p5.Amplitude();\n sound.connect(amp);\n}\n\nfunction playSound() {\n sound.play();\n}\n\nfunction draw() {\n let level = amp.getLevel();\n level = map(level, 0, 0.2, 0, 255);\n background(level, 0, 0);\n text('tap to play', width/2, 20);\n describe('The color of the background changes based on the amplitude of the sound.');\n}\n</code>\n</div>"
]
Expand Down Expand Up @@ -25088,7 +25096,7 @@
},
{
"file": "src/Amplitude.js",
"line": 52,
"line": 53,
"description": "Connect an audio source to the amplitude object.",
"itemtype": "method",
"name": "setInput",
Expand All @@ -25105,7 +25113,7 @@
},
{
"file": "src/Amplitude.js",
"line": 62,
"line": 63,
"description": "Get the current amplitude value of a sound.",
"itemtype": "method",
"name": "getLevel",
Expand All @@ -25117,6 +25125,23 @@
"module": "p5.sound",
"submodule": "p5.sound"
},
{
"file": "src/Amplitude.js",
"line": 73,
"description": "Get the current amplitude value of a sound.",
"itemtype": "method",
"name": "smooth",
"params": [
{
"name": "Smooth",
"description": "Amplitude analysis by averaging with the last analysis frame. Off by default.",
"type": "Number"
}
],
"class": "p5.Amplitude",
"module": "p5.sound",
"submodule": "p5.sound"
},
{
"file": "src/AudioIn.js",
"line": 57,
Expand Down
2 changes: 1 addition & 1 deletion public/search-indices/en.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/search-indices/es.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/search-indices/hi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/search-indices/ko.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/search-indices/zh-Hans.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions src/content/people/en/aarati-akkapeddi-.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: 'Aarati Akkapeddi '
url: https://github.com/AaratiAkkapeddi
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/abdiel-lopez.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Abdiel Lopez
url: https://github.com/PaperPrototype
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/antoinette-bumatay-chan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Antoinette Bumatay-Chan
url: http://www.antoinettecreates.com
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/ashwani-dey.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Ashwani Dey
url: https://github.com/ashwanidey
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/benpalevsky.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: benpalevsky
url: https://github.com/benpalevsky
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/c-dacanay.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: c-dacanay
url: https://github.com/c-dacanay
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/callie.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Callie
url: https://github.com/calliecramer
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/cog25.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: cog25
url: https://github.com/cog25
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/computational-mama.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: computational mama
url: http://computationalmama.xyz
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/forcha-pearl.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: FORCHA PEARL
url: https://www.linkedin.com/in/forcha-pearl/
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/ilona-brand.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Ilona Brand
url: https://github.com/ibrand
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/jared-berghold.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Jared Berghold
url: https://github.com/jaredberghold
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/jeanette.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: jeanette
url: http://jeanetteandre.ws
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/martin-lorentzon.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Martin Lorentzon
url: https://github.com/Martin-Lorentzon
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/mathewpan2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: mathewpan2
url: https://github.com/mathewpan2
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/maya-arguelles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Maya Arguelles
url: https://mayaarguelles.com/
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/melody-sharp.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Melody Sharp
url: https://github.com/valkyriedimension
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/pim-tournaye.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Pim Tournaye
url: https://github.com/PimTournaye
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/rishi.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Rishi
url: https://denisovichdev.github.io/link-tree
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/shoury-singh.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Shoury Singh
url: https://github.com/shourysingh07
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/tibor-udvari.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Tibor Udvari
url: http://tiborudvari.com
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/vishesh-rawal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: Vishesh Rawal
url: https://github.com/visheshrwl
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/willallstet.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: willallstet
url: http://willallstetter.com
category: contributor
3 changes: 3 additions & 0 deletions src/content/people/en/william-hazard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: William Hazard
url: https://github.com/williamthazard
category: contributor
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Amplitude/getLevel.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module: p5.sound
submodule: p5.sound
file: src/Amplitude.js
description: Get the current amplitude value of a sound.
line: 62
line: 63
isConstructor: false
itemtype: method
class: p5.Amplitude
Expand Down
2 changes: 1 addition & 1 deletion src/content/reference/en/p5.Amplitude/setInput.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module: p5.sound
submodule: p5.sound
file: src/Amplitude.js
description: Connect an audio source to the amplitude object.
line: 52
line: 53
isConstructor: false
itemtype: method
class: p5.Amplitude
Expand Down
21 changes: 21 additions & 0 deletions src/content/reference/en/p5.Amplitude/smooth.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: smooth
module: p5.sound
submodule: p5.sound
file: src/Amplitude.js
description: Get the current amplitude value of a sound.
line: 73
isConstructor: false
itemtype: method
class: p5.Amplitude
params:
- name: Smooth
description: >-
Amplitude analysis by averaging with the last analysis frame. Off by
default.
type: Number
chainable: false
---


# smooth
10 changes: 10 additions & 0 deletions src/content/reference/en/p5.sound/p5.Amplitude.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@ file: src/Amplitude.js
description: Get the current volume of a sound.
line: 10
isConstructor: true
params:
- name: smoothing
description: >-
Smooth the amplitude analysis by averaging with the last analysis frame.
0.0 is no time averaging with the last analysis frame.
type: Number
optional: true
example:
- |-
Expand Down Expand Up @@ -47,6 +54,9 @@ methods:
getLevel:
description: Get the current amplitude value of a sound.
path: p5.Amplitude/getLevel
smooth:
description: Get the current amplitude value of a sound.
path: p5.Amplitude/smooth
chainable: false
---

Expand Down
3 changes: 1 addition & 2 deletions src/globals/p5-version.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export const p5Version = "1.11.0" as const;
export const p5SoundVersion = "0.1.0" as const;
export const p5Version = "1.11.1" as const;

0 comments on commit 6059b79

Please sign in to comment.