Classes | UGens > InOut

LocalIn : AbstractIn : MultiOutUGen : UGen : AbstractFunction : Object

Define and read from buses local to a synth.
Source: InOut.sc


LocalIn defines buses that are local to the enclosing synth. These are like the global buses, but are more convenient if you want to implement a self contained effect that uses a feedback processing loop.

There can only be one audio rate and one control rate LocalIn per SynthDef. The audio can be written to the bus using LocalOut .

WARNING: Audio written to a LocalOut will not be read by a corresponding LocalIn until the next cycle, i.e. one block size of samples later. Because of this it is important to take this additional delay into account when using LocalIn to create feedback delays with delay times shorter than the threshold of pitch (i. e. < 0.05 seconds or > 20Hz), or where sample accurate alignment is required. See the resonator example below.

Class Methods

LocalIn.ar(numChannels: 1, default: 0.0)

LocalIn.kr(numChannels: 1, default: 0.0)



The number of channels (i.e. adjacent buses) to read in. You cannot modulate this number by assigning it to an argument in a SynthDef.


The initial value written to the bus once, so that it can be used before overwriting it with LocalOut. An array can be passed in to specify different values for each channel.

Inherited class methods

Instance Methods

Inherited instance methods