Skip to content

Commit 9c1c68c

Browse files
committed
fixes in distortion documentation
1 parent b839fbd commit 9c1c68c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/distortion.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,6 @@ class Distortion extends Effect {
123123
* @property {AudioNode} WaveShaperNode
124124
*/
125125
this.waveShaperNode = this.ac.createWaveShaper();
126-
127-
//this.amount = curveAmount;
128126
this.amount = amount;
129127
this.waveShaperNode.curve = makeDistortionCurve(curveAmount);
130128
this.waveShaperNode.oversample = oversample;
@@ -139,7 +137,7 @@ class Distortion extends Effect {
139137
*
140138
* @method process
141139
* @for p5.Distortion
142-
* @param {Object} Signal An object that outputs audio
140+
* @param {Object} src An object that outputs audio
143141
* @param {Number} [amount] Unbounded distortion amount.
144142
* Normal values range from 0-1.
145143
* @param {String} [oversample] 'none', '2x', or '4x'.

0 commit comments

Comments
 (0)