1
+ /**
2
+ * p5.sound extends p5 with <a href="http://caniuse.com/audio-api"
3
+ * target="_blank">Web Audio</a> functionality including audio input,
4
+ * playback, analysis and synthesis.
5
+ * <br/><br/>
6
+ * <a href="#/p5.SoundFile"><b>p5.SoundFile</b></a>: Load and play sound files.<br/>
7
+ * <a href="#/p5.Amplitude"><b>p5.Amplitude</b></a>: Get the current volume of a sound.<br/>
8
+ * <a href="#/p5.AudioIn"><b>p5.AudioIn</b></a>: Get sound from an input source, typically
9
+ * a computer microphone.<br/>
10
+ * <a href="#/p5.FFT"><b>p5.FFT</b></a>: Analyze the frequency of sound. Returns
11
+ * results from the frequency spectrum or time domain (waveform).<br/>
12
+ * <a href="#/p5.Oscillator"><b>p5.Oscillator</b></a>: Generate Sine,
13
+ * Triangle, Square and Sawtooth waveforms. Base class of
14
+ * <a href="#/p5.Noise">p5.Noise</a> and <a href="#/p5.Pulse">p5.Pulse</a>.
15
+ * <br/>
16
+ * <a href="#/p5.Env"><b>p5.Env</b></a>: An Envelope is a series
17
+ * of fades over time. Often used to control an object's
18
+ * output gain level as an "ADSR Envelope" (Attack, Decay,
19
+ * Sustain, Release). Can also modulate other parameters.<br/>
20
+ * <a href="#/p5.Delay"><b>p5.Delay</b></a>: A delay effect with
21
+ * parameters for feedback, delayTime, and lowpass filter.<br/>
22
+ * <a href="#/p5.Filter"><b>p5.Filter</b></a>: Filter the frequency range of a
23
+ * sound.
24
+ * <br/>
25
+ * <a href="#/p5.Reverb"><b>p5.Reverb</b></a>: Add reverb to a sound by specifying
26
+ * duration and decay. <br/>
27
+ * <b><a href="#/p5.Convolver">p5.Convolver</a>:</b> Extends
28
+ * <a href="#/p5.Reverb">p5.Reverb</a> to simulate the sound of real
29
+ * physical spaces through convolution.<br/>
30
+ * <b><a href="#/p5.SoundRecorder">p5.SoundRecorder</a></b>: Record sound for playback
31
+ * / save the .wav file.
32
+ * <b><a href="#/p5.Phrase">p5.Phrase</a></b>, <b><a href="#/p5.Part">p5.Part</a></b> and
33
+ * <b><a href="#/p5.Score">p5.Score</a></b>: Compose musical sequences.
34
+ * <br/><br/>
35
+ * p5.sound is on <a href="https://github.com/therewasaguy/p5.sound/">GitHub</a>.
36
+ * Download the latest version
37
+ * <a href="https://github.com/therewasaguy/p5.sound/blob/master/lib/p5.sound.js">here</a>.
38
+ *
39
+ * @module p5.sound
40
+ * @submodule p5.sound
41
+ * @for p5.sound
42
+ * @main
43
+ */
44
+
45
+ /**
46
+ * p5.sound
47
+ * https://p5js.org/reference/#/libraries/p5.sound
48
+ *
49
+ * From the Processing Foundation and contributors
50
+ * https://github.com/processing/p5.js-sound/graphs/contributors
51
+ *
52
+ * MIT License (MIT)
53
+ * https://github.com/processing/p5.js-sound/blob/master/LICENSE
54
+ *
55
+ * Some of the many audio libraries & resources that inspire p5.sound:
56
+ * - TONE.js (c) Yotam Mann. Licensed under The MIT License (MIT). https://github.com/TONEnoTONE/Tone.js
57
+ * - buzz.js (c) Jay Salvat. Licensed under The MIT License (MIT). http://buzz.jaysalvat.com/
58
+ * - Boris Smus Web Audio API book, 2013. Licensed under the Apache License http://www.apache.org/licenses/LICENSE-2.0
59
+ * - wavesurfer.js https://github.com/katspaugh/wavesurfer.js
60
+ * - Web Audio Components by Jordan Santell https://github.com/web-audio-components
61
+ * - Wilm Thoben's Sound library for Processing https://github.com/processing/processing/tree/master/java/libraries/sound
62
+ *
63
+ * Web Audio API: http://w3.org/TR/webaudio/
64
+ */
65
+
1
66
( function ( root , factory ) {
2
67
if ( typeof define === 'function' && define . amd )
3
68
define ( 'p5.sound' , [ 'p5' ] , function ( p5 ) { ( factory ( p5 ) ) ; } ) ;
6
71
else
7
72
factory ( root [ 'p5' ] ) ;
8
73
} ( this , function ( p5 ) {
9
-
74
+
0 commit comments