Skip to content

Commit b5f99c9

Browse files
authored
Merge pull request #470 from processing/sound-updates
Update sound library reference categories/subcategories
2 parents 102a083 + 9f3dbb7 commit b5f99c9

File tree

165 files changed

+792
-1033
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

165 files changed

+792
-1033
lines changed

content/references/examples/sound/Amplitude_stop_/Amplitude_stop_0.pde

Lines changed: 0 additions & 22 deletions
This file was deleted.

content/references/examples/sound/FFT_stop_/FFT_stop_0.pde

Lines changed: 0 additions & 36 deletions
This file was deleted.

content/references/examples/sound/SoundFile_set_/SoundFile_set_0.pde

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ void mousePressed() {
1616
float rate = 3;
1717
float pos = 0.5;
1818
float amp = 0.5;
19-
float add = 0;
20-
file.set(rate, pos, amp, add);
19+
file.set(rate, pos, amp);
2120
}
2221

content/references/translations/en/sound/Amplitude.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,21 @@
1717
"classFields": [],
1818
"description": "This is a volume analyzer. It calculates the root mean square of the\n amplitude of each audio block and returns that value.",
1919
"type": "class",
20-
"constructors": ["Amplitude(parent)"],
20+
"constructors": [
21+
"Amplitude(parent)"
22+
],
2123
"related": [],
2224
"name": "Amplitude",
2325
"classanchor": "sound/Amplitude",
24-
"category": "analysis",
25-
"subcategory": "",
26+
"category": "Analysis",
27+
"subcategory": "Amplitude",
2628
"parameters": [
2729
{
2830
"name": "parent",
2931
"description": "typically use \"this\"",
30-
"type": ["PApplet"]
32+
"type": [
33+
"PApplet"
34+
]
3135
}
3236
]
3337
}

content/references/translations/en/sound/Amplitude_analyze_.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"syntax": [".analyze()"],
77
"returns": "float",
88
"type": "method",
9-
"category": "amplitude",
10-
"subcategory": "",
9+
"category": "Analysis",
10+
"subcategory": "Amplitude",
1111
"classanchor": "Amplitude",
1212
"parameters": []
1313
}

content/references/translations/en/sound/Amplitude_input_.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"syntax": [".input(input)"],
77
"returns": "void",
88
"type": "method",
9-
"category": "amplitude",
10-
"subcategory": "",
9+
"category": "Analysis",
10+
"subcategory": "Amplitude",
1111
"classanchor": "Amplitude",
1212
"parameters": [
1313
{

content/references/translations/en/sound/Amplitude_stop_.json

Lines changed: 0 additions & 13 deletions
This file was deleted.
Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,65 @@
11
{
22
"brief": "AudioIn lets you grab the audio input from your sound card.",
33
"methods": [
4+
{
5+
"anchor": "AudioIn_amp_",
6+
"name": "amp()",
7+
"desc": "Change the amplitude/volume of this sound."
8+
},
9+
{
10+
"anchor": "AudioIn_pan_",
11+
"name": "pan()",
12+
"desc": "Move the sound in a stereo panorama."
13+
},
414
{
515
"anchor": "AudioIn_play_",
616
"name": "play()",
717
"desc": "Start capturing the input stream and route it to the audio output"
818
},
19+
{
20+
"anchor": "AudioIn_set_",
21+
"name": "set()",
22+
"desc": "Set amplitude and pan position with one method."
23+
},
924
{
1025
"anchor": "AudioIn_start_",
1126
"name": "start()",
1227
"desc": "Start the input stream without routing it to the audio output."
1328
},
1429
{
15-
"anchor": "AudioIn_set_",
16-
"name": "set()",
17-
"desc": "Sets amplitude, add and pan position with one method."
30+
"anchor": "AudioIn_stop_",
31+
"name": "stop()",
32+
"desc": "Stop capturing sound from this audio input."
1833
}
1934
],
2035
"csspath": "../../",
2136
"isLibrary": "true",
2237
"classFields": [],
2338
"description": "AudioIn lets you grab the audio input from your sound card.",
2439
"type": "class",
25-
"constructors": ["AudioIn(parent)", "AudioIn(parent, in)"],
40+
"constructors": [
41+
"AudioIn(parent)",
42+
"AudioIn(parent, in)"
43+
],
2644
"related": [],
2745
"name": "AudioIn",
2846
"classanchor": "sound/AudioIn",
2947
"category": "I/O",
30-
"subcategory": "",
48+
"subcategory": "AudioIn",
3149
"parameters": [
3250
{
3351
"name": "parent",
3452
"description": "typically use \"this\"",
35-
"type": ["PApplet"]
53+
"type": [
54+
"PApplet"
55+
]
3656
},
3757
{
3858
"name": "in",
3959
"description": "input channel number (optional, default 0)",
40-
"type": ["int"]
60+
"type": [
61+
"int"
62+
]
4163
}
4264
]
4365
}

content/references/translations/en/sound/AudioIn_add_.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

content/references/translations/en/sound/AudioIn_amp_.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"brief": "Changes the amplitude/volume of the input stream.",
2+
"brief": "Change the amplitude/volume of this sound.",
33
"related": [],
44
"name": "amp()",
5-
"description": "Changes the amplitude/volume of the input stream. Allowed values are between 0.0 and 1.0.",
5+
"description": "Change the amplitude/volume of this sound.",
66
"syntax": [".amp(amp)"],
77
"returns": "void",
88
"type": "method",
@@ -12,7 +12,7 @@
1212
"parameters": [
1313
{
1414
"name": "amp",
15-
"description": "the amplitude of the input stream as a value from 0.0 (complete silence) to 1.0 (full volume)",
15+
"description": "A float value between 0.0 (complete silence) and 1.0 (full volume)\n controlling the amplitude/volume of this sound.",
1616
"type": ["float"]
1717
}
1818
]

0 commit comments

Comments
 (0)