pan(val, tFromNow) {
      if (typeof val === 'number') {
        let time = tFromNow || 0;
        this.stereoPanner.pan.linearRampToValueAtTime(
          val,
          this.ac.currentTime + time
        );
      } else if (typeof val !== 'undefined') {
        val.connect(this.stereoPanner.pan);
      }
    }
Set the stereo pan position, a value of -1 means the sound will be fully panned
to the left, a value of 0 means the sound will be centered, and a value of 1 means
the sound will be fully panned to the right.
@method pan
@for p5.Panner
@param {Number} value  A value between -1 and 1 that sets the pan position.

@param {Number} [time] time in seconds that it will take for the panning to change to the specified value.