threshold(threshold, time) {
    var t = time || 0;
    if (typeof threshold === 'number') {
      this.compressor.threshold.value = threshold;
      this.compressor.threshold.cancelScheduledValues(
        this.ac.currentTime + 0.01 + t
      );
      this.compressor.threshold.linearRampToValueAtTime(
        threshold,
        this.ac.currentTime + 0.02 + t
      );
    } else if (typeof threshold !== 'undefined') {
      threshold.connect(this.compressor.threshold);
    }
    return this.compressor.threshold.value;
  }
Get current threshold or set value w/ time ramp
@method threshold
@for p5.Compressor
@param {Number} threshold  The decibel value above which the compression will start taking effect
                           default = -24, range -100 - 0
@param {Number} [time]  Assign time value to schedule the change in value