Class Name

PinkNoise

Description

This is a pink noise generator. Pink Noise has a decrease of 3dB per octave.

Examples

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

Constructors

  • PinkNoise(parent)

Parameters

  • parent(PApplet)typically 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