Classes | UGens > InOut

AudioIn : SoundIn : Object

Read audio input.
Source: AudioIn.sc

Description

Reads audio from the sound input hardware.

NOTE: This is provided for backwards compatibility with SC2 code. For normal use SoundIn, which has bus numbers beginning at 0, as AudioIn may be deprecated and removed at some point in the future.

Class Methods

AudioIn.ar(channel: 0, mul: 1, add: 0)

Arguments:

channel

Input channel number to read. Channel numbers begin at 1.

mul
add

Inherited class methods

Undocumented class methods

AudioIn.channelOffset

Instance Methods

Inherited instance methods

Examples

Patching input to output

// patching input to output

// beware of the feedback

(
ServerOptions.inDevices.postln;    //  post available audio input devices
s.meter;    // display level meters for monitoring
SynthDef(\helpAudioIn, { |out|
    var input = AudioIn.ar(1); // first input
    // delay output to tame feedback in case of microphones are configured:
    Out.ar(out, CombN.ar(input * -25.dbamp, 0.5, 0.5, 0.001))
}).play
)