toggleImpulse(id) {
    if (typeof id === 'number' && id < this.impulses.length) {
      this._setBuffer(this.impulses[id].audioBuffer);
    }
    if (typeof id === 'string') {
      for (var i = 0; i < this.impulses.length; i++) {
        if (this.impulses[i].name === id) {
          this._setBuffer(this.impulses[i].audioBuffer);
          break;
        }
      }
    }
  }
If you have used <code>.addImpulse()</code> to add multiple impulses
 to a p5.Convolver, then you can use this method to toggle between
 the items in the <code>.impulses</code> Array. Accepts a parameter
 to identify which impulse you wish to use, identified either by its
 original filename (String) or by its position in the <code>.impulses
 </code> Array (Number).<br/>
 You can access the objects in the .impulses Array directly. Each
 Object has two attributes: an <code>.audioBuffer</code> (type:
 Web Audio <a href="
 http://webaudio.github.io/web-audio-api/#the-audiobuffer-interface">
 AudioBuffer)</a> and a <code>.name</code>, a String that corresponds
 with the original filename.

 @method toggleImpulse
 @for p5.Convolver
 @param {String|Number} id Identify the impulse by its original filename
                           (String), or by its position in the
                           <code>.impulses</code> Array (Number).