attack(attack, time) {
    var t = time || 0;
    if (typeof attack === 'number') {
      this.compressor.attack.value = attack;
      this.compressor.attack.cancelScheduledValues(
        this.ac.currentTime + 0.01 + t
      );
      this.compressor.attack.linearRampToValueAtTime(
        attack,
        this.ac.currentTime + 0.02 + t
      );
    } else if (typeof attack !== 'undefined') {
      attack.connect(this.compressor.attack);
    }
    return this.compressor.attack.value;
  }
Get current attack or set value w/ time ramp


@method attack
@for p5.Compressor
@param {Number} [attack] Attack is the amount of time (in seconds) to reduce the gain by 10dB,
                         default = .003, range 0 - 1
@param {Number} [time]  Assign time value to schedule the change in value