A graph element that produces an integer sequence from zero until the number-of-channels of the input element.
A graph element that flattens the channels from a nested multi-channel structure.
A graph element that flattens the channels from a nested multi-channel structure.
the element to flatten
A graph element which maps a linear range to another linear range.
A graph element which maps a linear range to another linear range.
The equivalent formula is (in - srcLo) / (srcHi - srcLo) * (dstHi - dstLo) + dstLo
.
Note: No clipping is performed. If the input signal exceeds the input range, the output will also exceed its range.
The input signal to convert.
The lower limit of input range.
The upper limit of input range.
The lower limit of output range.
The upper limit of output range.
de.sciss.synth.ugen.Clip
de.sciss.synth.ugen.LinExp
Mixes the channels of a signal together.
Mixes the channels of a signal together. Works exactly like the sclang counterpart.
Here are some examples:
Mix(SinOsc.ar(440 :: 660 :: Nil)) --> SinOsc.ar(440) + SinOsc.ar(660) Mix(SinOsc.ar(440)) --> SinOsc.ar(440) Mix(Pan2.ar(SinOsc.ar)) --> left + right Mix(Pan2.ar(SinOsc.ar(440 :: 660 :: Nil))) --> [left(440) + left(660), right(440) + right(660)]
A graph element that produces an integer with number-of-channels of the input element.
A graph element that produces an integer with number-of-channels of the input element.
the element whose number-of-channels to produce
A graph element that controls the multi-channel expansion of
its in
argument to match the to
argument by padding (extending
and wrapping) it.
A graph element that controls the multi-channel expansion of
its in
argument to match the to
argument by padding (extending
and wrapping) it.
the element to replicate
the reference element that controls the multi-channel expansion.
the signal itself is not used or output by Pad
.
A graph element which reads from a connected sound driver input.
A graph element which reads from a connected sound driver input. This is a convenience
element for accessing physical input signals, e.g. from a microphone connected to your
audio interface. It expands to a regular In
UGen offset by NumOutputBuses.ir
.
For example, consider an audio interface with channels 1 to 8 being analog line inputs, channels 9 and 10 being AES/EBU and channels 11 to 18 being ADAT inputs. To read a combination of the analog and ADAT inputs, either of the following statement can be used:
PhysicalIn(Seq(0, 8), Seq(8, 8)) PhysicalIn(Seq(0, 8), Seq(8)) // numChannels wraps!
the physical index to read from (beginning at zero which corresponds to the first channel of the audio interface or sound driver). Maybe be a multichannel element to specify discrete indices.
the number of consecutive channels to read for each index. Wraps around if the sequence has less elements than indices has channels.
An element which writes an input signal to a bus, optionally applying a short fade-in.
An element which writes an input signal to a bus, optionally applying a short fade-in.
This is automatically added when using the play { ... }
syntax. If the fade time is
given, an envelope is added with a control named "gate"
which can be used to release
the synth. The bus is given by a control named "out"
and defaults to zero.
the signal to play to the default output
the fade in time; use a negative number for no fading
Contains several helper methods to produce mixed (summed) signals.
A graph element which reads from a connected sound driver input.
A graph element which reads from a connected sound driver input. This is a convenience
element for accessing physical input signals, e.g. from a microphone connected to your
audio interface. It expands to a regular In
UGen offset by NumOutputBuses.ir
.
For example, consider an audio interface with channels 1 to 8 being analog line inputs, channels 9 and 10 being AES/EBU and channels 11 to 18 being ADAT inputs. To read a combination of the analog and ADAT inputs, either of the following statement can be used:
PhysicalIn(Seq(0, 8), Seq(8, 8)) PhysicalIn(Seq(0, 8), Seq(8)) // numChannels wraps!
A graph element which writes to a connected sound driver output.
A graph element which writes to a connected sound driver output. This is a convenience
element for Out
with the ability to provide a set of discrete indices to which
corresponding channels of the input signal are mapped, whereas multichannel expansion
with respect to the index argument of Out
typically do not achieve what you expect.
For example, to flip left and right when writing a stereo signal:
// sine appears on the right channel, and noise on the left play { PhysicalOut( Seq( 1, 0 ), Seq( SinOsc.ar * LFPulse.ar(4), WhiteNoise.ar ) * 0.2 )}
A graph element that spreads a sequence of input channels across a ring of output channels.
A graph element that spreads a sequence of input channels across a ring of output channels.
This works by feeding each input channel through a dedicated PanAz
UGen, and mixing the
results together.
The panning position of each input channel with index ch
is calculated by the formula:
val pf = 2.0 / (number-of-input-channels - 1) * (number-of-output-channels - 1) / number-of-output-channels ch * pf + center
An element which writes an input signal to a bus, optionally applying a short fade-in.
An element which writes an input signal to a bus, optionally applying a short fade-in.
This is automatically added when using the play { ... }
syntax. If the fade time is
given, an envelope is added with a control named "gate"
which can be used to release
the synth. The bus is given by a control named "out"
and defaults to zero.
A graph element that produces an integer sequence from zero until the number-of-channels of the input element.
the element whose indices to produce