smooth(s) {
    if (s >= 0 && s < 1) {
      this._workletNode.port.postMessage({ name: 'smoothing', smoothing: s });
    } else {
      console.log('Error: smoothing must be between 0 and 1');
    }
  }
Smooth Amplitude analysis by averaging with the last analysis
 frame. Off by default.

 @method smooth
 @for p5.Amplitude
 @param {Number} set smoothing from 0.0 <= 1