AudioIn (Javadocs: Processing Sound)
AudioIn lets you grab the audio input from your sound card.
-
Constructor Summary
Constructors
-
Method Summary
voidplay()voidplay(float amp) voidplay(float amp, float add) voidplay(float amp, float add, float pos) Start capturing the input stream and route it to the audio output
voidset(float amp, float pos) Set amplitude and pan position with one method.
voidset(float amp, float add, float pos) voidstart()voidstart(float amp) voidstart(float amp, float add) voidstart(float amp, float add, float pos) Start the input stream without routing it to the audio output.
voidstop()Stop capturing sound from this audio input.
-
Constructor Details
-
Method Details
-
play
public void play()
Starts the generator
- Overrides:
playin classSoundObject
-
play
public void play
(float amp) -
play
public void play
(float amp, float add) -
play
public void play
(float amp, float add, float pos) Start capturing the input stream and route it to the audio output
- Parameters:
amp- the volume to grab the input at as a value from 0.0 (complete silence) to 1.0 (full volume)pos- pan the audio input in a stereo panorama. Allowed values are between -1.0 (left) and 1.0 (right)
-
start
public void start()
-
start
public void start
(float amp) -
start
public void start
(float amp, float add) -
start
public void start
(float amp, float add, float pos) Start the input stream without routing it to the audio output. This is useful if you only want to perform audio analysis based on the microphone input.
- Parameters:
amp- the volume to grab the input at as a value from 0.0 (complete silence) to 1.0 (full volume)add- offset the audio input by the given valuepos- pan the audio input in a stereo panorama. Allowed values are between -1.0 (left) and 1.0 (right)
-
set
public void set
(float amp, float pos) Set amplitude and pan position with one method.
- Parameters:
amp- the volume to grab the input at as a value from 0.0 (complete silence) to 1.0 (full volume)pos- pan the audio input in a stereo panorama. Allowed values are between -1.0 (left) and 1.0 (right)
-
set
public void set
(float amp, float add, float pos) -
stop
public void stop()
Stop capturing sound from this audio input.
- Overrides:
stopin classSoundObject
-