You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/soundLoop.js
+18-7Lines changed: 18 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,17 @@ define(function (require) {
6
6
7
7
/**
8
8
* SoundLoop
9
-
*
9
+
* Beats are the periodic and repeating fluctuations heard in the intensity of a sound when two sound waves of very similar frequency interfere with one another.
10
+
* Nodes are the locations where no sound is produced as a result of destructive interference.
11
+
* Beat pattern is characterized by a wave whose amplitude is changing at a regular rate.
12
+
* It oscillates from a zero amplitude to a larger amplitude, back to zero amplitude throughout the pattern.
13
+
* This corresponds to a peak on the beat pattern when constructive interference occurs between two sound waves and a loud sound is heard.
10
14
* @class p5.SoundLoop
11
15
* @constructor
12
16
*
13
-
* @param {Function} callback this function will be called on each iteration of theloop
14
-
* @param {Number|String} [interval] amount of time (if a number) or beats (if a string, following <a href = "https://github.com/Tonejs/Tone.js/wiki/Time">Tone.Time</a> convention) for each iteration of the loop. Defaults to 1 second.
17
+
* @param {Function} callback this function will be called on each iteration of the loop
18
+
* @param {Number|String} [interval] amount of time (if a number) or beats (if a string, following <a href = "https://github.com/Tonejs/Tone.js/wiki/Time">Tone.Time</a> convention) for each iteration of the loop.
19
+
* Time always defaults to 1 second(and never milliseconds) here.
0 commit comments