final case classZip(elems: GE*) extends GE.Lazy with Product with Serializable
A graph element that interleaves a number of (multi-channel) input signals.
For example, if two stereo-signals a and b are zipped, the output will be a four-channel
signal corresponding to [ a \ 0, b \ 0, a \ 1, b \ 1 ]. If the input signals
have different numbers of channels, the minimum number of channels is used.
Examples
// peak and RMS meteringval x = play {
val sig = PhysicalIn.ar(0 to 1) // stereo inputval tr = Impulse.kr(5)
val peak = Peak.kr(sig, tr)
val rms = A2K.kr(Lag.ar(sig.squared, 0.1))
SendReply.kr(tr, Zip(peak, rms), "/meter")
}
val r = message.Responder.add(x.server) {
case osc.Message("/meter", x.id, _, peakL: Float, rmsL: Float, peakR: Float, rmsR: Float) =>
println(f"peak-left $peakL%g, rms-left $rmsL%g, peak-right $peakR%g, rms-right $rmsR%g")
x.free(); r.remove()
elems
the signals to interleave in a multi-channel output signal
Linear Supertypes
Serializable, Serializable, GE.Lazy, GE, Expander[UGenInLike], Lazy, Product, Equals, AnyRef, Any
Ordering
Alphabetic
By Inheritance
Inherited
Zip
Serializable
Serializable
Lazy
GE
Expander
Lazy
Product
Equals
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Instance Constructors
newZip(elems: GE*)
elems
the signals to interleave in a multi-channel output signal
A graph element that interleaves a number of (multi-channel) input signals. For example, if two stereo-signals
a
andb
are zipped, the output will be a four-channel signal corresponding to[ a \ 0, b \ 0, a \ 1, b \ 1 ]
. If the input signals have different numbers of channels, the minimum number of channels is used.Examples
the signals to interleave in a multi-channel output signal