setType(type) {
    switch (type) {
      case 'white':
        this.buffer = _whiteNoiseBuffer;
        break;
      case 'pink':
        this.buffer = _pinkNoiseBuffer;
        break;
      case 'brown':
        this.buffer = _brownNoiseBuffer;
        break;
      default:
        this.buffer = _whiteNoiseBuffer;
    }
    if (this.started) {
      var now = p5sound.audiocontext.currentTime;
      this.stop(now);
      this.start(now + 0.01);
    }
  }
Set type of noise to 'white', 'pink' or 'brown'.
 White is the default.

 @method setType
 @param {String} type 'white', 'pink' or 'brown'