package ugen
- Alphabetic
- Public
- Protected
Type Members
- final case class AudioControl(values: IndexedSeq[Float], ctrlName: Option[String]) extends MultiOut with AudioRated with Product with Serializable
- final case class AudioControlProxy(values: IndexedSeq[Float], name: Option[String]) extends ControlProxyLike with AudioRated with Product with Serializable
- abstract class BinaryOpUGen extends SingleOut
- final case class ChannelProxy(elem: GE, index: Int) extends GE.Lazy with Product with Serializable
A helper graph element that selects a particular output channel of another element.
A helper graph element that selects a particular output channel of another element. The index is an
Integerand thus cannot be determined at graph expansion time. If this is desired, theSelectUGen can be used.Usually the graph element operator
\(backlash) can be used instead of explicitly writingChannelProxy. Thuselem \ indexis equivalent toChannelProxy(elem, index). UGens with a fixed number of outputs often have auxiliary methods to access the channels in meaningful way, e.g.Pitchhas methodfreqandhasFreq, which are equivalent topitch \ 0andpitch \ 1.Because ScalaCollider allows late-expanding graph elements, we have no direct way to get some array of a UGen's outputs.
Examples
// frequency of a pitch estimator play { val sin = SinOsc.ar(MouseX.kr(10, 10000, warp = 1)) val pch = Pitch.kr(sin) val freq = pch \ 0 // same as pch.freq freq.poll(label = "freq") () }
- elem
a multi-channel element from which to select a channel.
- index
channel index starting at zero. It automatically wraps around the actual number of channels the input
elemexpands to.
- See also
NumChannels
Select
- final case class Constant(value: Float) extends UGenIn with ScalarRated with Product with Serializable
A scalar constant used as an input to a UGen.
A scalar constant used as an input to a UGen. These constants are stored in a separate table of the synth graph.
- final case class Control(rate: Rate, values: IndexedSeq[Float], ctrlName: Option[String]) extends MultiOut with Product with Serializable
- final class ControlFactory extends ControlFactoryLike
- trait ControlFactoryLike extends AnyRef
- final case class ControlProxy(rate: Rate, values: IndexedSeq[Float], name: Option[String]) extends ControlProxyLike with Product with Serializable
- final class ControlProxyFactory extends AnyVal
- trait ControlProxyLike extends GE
- final case class ControlUGenOutProxy(source: ControlProxyLike, outputIndex: Int) extends UGenIn with Product with Serializable
A ControlOutProxy is similar to a UGenOutProxy in that it denotes an output channel of a control UGen.
A ControlOutProxy is similar to a UGenOutProxy in that it denotes an output channel of a control UGen. However it refers to a control-proxy instead of a real control ugen, since the proxies are synthesized into actual ugens only at the end of a synth graph creation, in order to clump several controls together. ControlOutProxy instance are typically returned from the ControlProxyFactory class, that is, using the package implicits, from calls such as "myControl".kr.
- final case class ControlValues(seq: IndexedSeq[Float]) extends Product with Serializable
- final case class GESeq(elems: IndexedSeq[GE]) extends GE with Product with Serializable
- final case class MulAdd(in: GE, mul: GE, add: GE) extends SingleOut with Product with Serializable
A UGen that multiplies an input with another signal and then adds a third signal.
A UGen that multiplies an input with another signal and then adds a third signal. This can be used to translate an element into a different value range.
Usually the graph element operator
maddis used instead of explicitly writingMulAdd.MulAdd(in, mul, add) == in.madd(mul, add) == in * mul + add
Examples
// scale value range play { // input range -1 to +1, // output range ((-1 * 100) + 300) = 200 // to ((+1 * 100) + 300) = 400 val freq = SinOsc.kr(1).madd(100, 300) // or MulAdd(..., 100, 300) freq.poll(label = "freq") SinOsc.ar(freq) * 0.1 }
- in
the input signal to scale and offset
- mul
the scaling factor, applied first to the input
- add
the offset, added after applying the multiplication
- See also
- final case class Nyquist() extends GE with ScalarRated with Product with Serializable
A helper graph element equivalent to
SampleRate.ir * 0.5.A helper graph element equivalent to
SampleRate.ir * 0.5.- See also
SampleRate
- final case class Sum3(in0: GE, in1: GE, in2: GE) extends SingleOut with Product with Serializable
A UGen to efficiently add three signals together.
A UGen to efficiently add three signals together. Usually used indirectly through
Mix.- in0
first of the three inputs
- in1
second of the three inputs
- in2
third of the three inputs
- See also
- final case class Sum4(in0: GE, in1: GE, in2: GE, in3: GE) extends SingleOut with Product with Serializable
A UGen to efficiently add four signals together.
A UGen to efficiently add four signals together. Usually used indirectly through
Mix.- in0
first of the four inputs
- in1
second of the four inputs
- in2
third of the four inputs
- in3
fourth of the four inputs
- See also
- final case class TrigControl(values: IndexedSeq[Float], ctrlName: Option[String]) extends MultiOut with ControlRated with Product with Serializable
- final case class TrigControlProxy(values: IndexedSeq[Float], name: Option[String]) extends ControlProxyLike with ControlRated with Product with Serializable
- sealed trait UGenInGroup extends UGenInLike
A trait that can be either a group of
UGenInLikeor aUGen.MultiOut - final case class UGenOutProxy(source: MultiOut, outputIndex: Int) extends UGenIn with UGenProxy with Product with Serializable
A UGenOutProxy refers to a particular output of a multi-channel UGen.
A UGenOutProxy refers to a particular output of a multi-channel UGen. A sequence of these form the representation of a multi-channel-expanded UGen.
- sealed trait UGenProxy extends UGenIn
- abstract class UnaryOpUGen extends SingleOut
Value Members
- object AudioControl extends Serializable
- object AudioControlProxy extends Serializable
- object BinaryOpUGen
Binary operations are generally constructed by calling one of the methods of
GEOps.Binary operations are generally constructed by calling one of the methods of
GEOps.- See also
GEOps
UnaryOpUGen
- case object BuildInfo extends Product with Serializable
This object was generated by sbt-buildinfo.
- object Constant extends Serializable
- object Control extends Serializable
- object ControlProxy extends Serializable
- object ControlValues extends Serializable
- object GESeq extends Serializable
- object Nyquist extends Serializable
A helper graph element equivalent to
SampleRate.ir * 0.5.A helper graph element equivalent to
SampleRate.ir * 0.5.Examples
// as frequency argument play { Dust.ar(Nyquist()).pow(8) }
- See also
SampleRate
- object Sum3 extends Serializable
A UGen to efficiently add three signals together.
A UGen to efficiently add three signals together. Usually used indirectly through
Mix.- See also
- object Sum4 extends Serializable
A UGen to efficiently add four signals together.
A UGen to efficiently add four signals together. Usually used indirectly through
Mix.- See also
- object TrigControl extends Serializable
- object TrigControlProxy extends Serializable
- object UGenInGroup
- object UnaryOpUGen
Unary operations are generally constructed by calling one of the methods of
GEOps.Unary operations are generally constructed by calling one of the methods of
GEOps.- See also
GEOps @see BinaryOpUGen