Class Name

BrownNoise

Description

Brown noise (also called red noise) has higher energy at lower frequencies. Its power density decreases 6dB per octave. Please be aware that, because most of its power resides in the bass frequencies, the subjective loudness of brown noise relative to other sounds can vary dramatically depending on how well your sound system can reproduce low frequency sounds!

Examples

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

Constructors

  • BrownNoise(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