setType(t) {
    if (t === 1) {
      t = 'pingPong';
    }
    this._split.disconnect();
    this._leftFilter.disconnect();
    this._rightFilter.disconnect();
    this._split.connect(this.leftDelay, 0);
    this._split.connect(this.rightDelay, 1);
    switch (t) {
      case 'pingPong':
        this._rightFilter.setType(this._leftFilter.biquad.type);
        this._leftFilter.output.connect(this._merge, 0, 0);
        this._rightFilter.output.connect(this._merge, 0, 1);
        this._leftFilter.output.connect(this.rightDelay);
        this._rightFilter.output.connect(this.leftDelay);
        break;
      default:
        this._leftFilter.output.connect(this._merge, 0, 0);
        this._rightFilter.output.connect(this._merge, 0, 1);
        this._leftFilter.output.connect(this.leftDelay);
        this._rightFilter.output.connect(this.rightDelay);
    }
  }
Choose a preset type of delay. 'pingPong' bounces the signal
 from the left to the right channel to produce a stereo effect.
 Any other parameter will revert to the default delay setting.

 @method  setType
 @for p5.Delay
 @param {String|Number} type 'pingPong' (1) or 'default' (0)