Class Name

AudioIn

Description

AudioIn lets you grab the audio input from your sound card.

Examples

  • 
    import processing.sound.*;
    AudioIn in;
    
    void setup() {
      size(640, 360);
      background(255);
        
      // Create the Input stream
      in = new AudioIn(this, 0);
      in.play();
    }      
    
    void draw() {
    }
    
    

Constructors

  • AudioIn(parent)
  • AudioIn(parent, in)

Parameters

  • parenttypically use "this"
  • ininput channel number (optional, default 0)

Methods

  • play()Start capturing the input stream and route it to the audio output
  • start()Start the input stream without routing it to the audio output.
  • set()Sets amplitude, add and pan position with one method.