audio feedback

From Noah.org
Revision as of 06:19, 20 June 2016 by Root (talk | contribs)
Jump to navigationJump to search


AudioIn.ar(channel, mul, add)

Reads audio from the sound input hardware. channel - input channel number to read. Channel numbers begin at 1.

// mono: patch input to output
(
SynthDef("help-AudioIn",{ arg out=0;
	Out.d.......dar(out,
		AudioIn.ar(1)
	)
}).play;
)
// stereo -- patch input to output

(
SynthDef("help-AudioIn",{ arg out=0;
	Out.ar(out,
		AudioIn.ar([1,2])
	)
}).play;
)