Class Name

WhiteNoise

Description

This is a White Noise Generator. White Noise has a flat spectrum.

Examples

  • import processing.sound.*;
    WhiteNoise noise;
    
    void setup() {
      size(640, 360);
      background(255);
      
      // Create the noise generator
      noise = new WhiteNoise(this);
      noise.play();
    }      
    
    void draw() {
    }
    

Constructors

  • WhiteNoise(parent)

Parameters

  • parenttypically use "this"

Methods

  • amp()Change the amplitude/volume of this sound.
  • pan()Move the sound in a stereo panorama.
  • play()Starts the noise
  • set()Set the amplitude and panoramic position with one method.
  • stop()Stop the noise from playing back