message: simplifying logic
diff: @@ -78,9 +78,8 @@ export class Noise extends Source<NoiseOptions> {
  return this._type;
  }
  set type(type: NoiseType) {
  - this.assert(["white", "pink", "brown"].indexOf(type) !== -1, "Noise: invalid type: " + type);
  + this.assert(type in _noiseBuffers, "Noise: invalid type: " + type);
  if (this._type !== type) {
  - if (type in _noiseBuffers) {
  this._type = type;
  // if it's playing, stop and restart it
  if (this.state === "started") {
  @@ -90,7 +89,6 @@ export class Noise extends Source<NoiseOptions> {
  }
  }
  }
  - }
  /**
  * The playback rate of the noise. Affects
  