set(amount, oversample) {
    if (typeof amount === 'number') {
      var curveAmount = p5.prototype.map(amount, 0.0, 1.0, 0, 2000);
      //this.amount = curveAmount;
      this.amount = amount;
      this.waveShaperNode.curve = makeDistortionCurve(curveAmount);
    }
    if (oversample) {
      this.waveShaperNode.oversample = oversample;
    }
  }
Set the amount and oversample of the waveshaper distortion.

@method set
@for p5.Distortion
@param {Number} [amount] Unbounded distortion amount.
                               Normal values range from 0-1.
@param {String} [oversample] 'none', '2x', or '4x'.