Package

de.sciss.synth

ugen

Permalink

package ugen

Visibility
  1. Public
  2. All

Type Members

  1. final case class ChannelIndices(in: GE) extends SingleOut with ScalarRated with Product with Serializable

    Permalink

    A graph element that produces an integer sequence from zero until the number-of-channels of the input element.

    A graph element that produces an integer sequence from zero until the number-of-channels of the input element.

    in

    the element whose indices to produce

  2. final case class Env(startLevel: GE, segments: Seq[Segment], releaseNode: GE = 99, loopNode: GE = 99) extends EnvLike with Product with Serializable

    Permalink
  3. sealed trait EnvFactory[V] extends AnyRef

    Permalink
  4. sealed trait EnvLike extends GE

    Permalink
  5. final case class Flatten(elem: GE) extends GE.Lazy with Product with Serializable

    Permalink

    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.

    elem

    the element to flatten

  6. final case class IEnv(startLevel: GE, segments: Seq[Segment], offset: GE = 0) extends EnvLike with Product with Serializable

    Permalink
  7. final case class LinLin(in: GE, srcLo: GE = 0f, srcHi: GE = 1f, dstLo: GE = 0f, dstHi: GE = 1f) extends GE.Lazy with Product with Serializable

    Permalink

    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.

    in

    The input signal to convert.

    srcLo

    The lower limit of input range.

    srcHi

    The upper limit of input range.

    dstLo

    The lower limit of output range.

    dstHi

    The upper limit of output range.

    See also

    de.sciss.synth.ugen.Clip

    de.sciss.synth.ugen.LinExp

  8. final case class Mix(elem: GE) extends SingleOut with Product with Serializable

    Permalink

    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)]
  9. final case class NumChannels(in: GE) extends SingleOut with ScalarRated with Product with Serializable

    Permalink

    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.

    in

    the element whose number-of-channels to produce

  10. final case class Pad(in: GE, to: GE) extends SingleOut with Product with Serializable

    Permalink

    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.

    in

    the element to replicate

    to

    the reference element that controls the multi-channel expansion. the signal itself is not used or output by Pad.

  11. final case class PhysicalIn(indices: GE, numChannels: Seq[Int]) extends GE.Lazy with AudioRated with Product with Serializable

    Permalink

    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!
    indices

    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.

    numChannels

    the number of consecutive channels to read for each index. Wraps around if the sequence has less elements than indices has channels.

  12. final case class PhysicalOut(indices: GE, in: GE) extends ZeroOut with AudioRated with Product with Serializable

    Permalink
  13. final case class Reduce(elem: GE, op: Op) extends SingleOut with Product with Serializable

    Permalink
  14. final case class Silent(numChannels: Int) extends GE.Lazy with AudioRated with Product with Serializable

    Permalink
  15. final case class SplayAz(rate: Rate, numChannels: Int, in: GE, spread: GE, center: GE, level: GE, width: GE, orient: GE) extends GE.Lazy with Product with Serializable

    Permalink
  16. final case class WrapOut(in: GE, fadeTime: Double = 0.02) extends ZeroOut with WritesBus with Product with Serializable

    Permalink

    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.

    in

    the signal to play to the default output

    fadeTime

    the fade in time; use a negative number for no fading

  17. final case class Zip(elems: GE*) extends GE.Lazy with Product with Serializable

    Permalink

Value Members

  1. object Env extends EnvFactory[Env] with Serializable

    Permalink
  2. object IEnv extends EnvFactory[IEnv] with Serializable

    Permalink
  3. object Mix extends Serializable

    Permalink

    Contains several helper methods to produce mixed (summed) signals.

  4. object Pad extends Serializable

    Permalink
  5. object PhysicalIn extends Serializable

    Permalink

    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!
  6. object PhysicalOut extends Serializable

    Permalink

    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 )}
  7. object Reduce extends Serializable

    Permalink
  8. object Silent extends Serializable

    Permalink
  9. object SplayAz extends Serializable

    Permalink

    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
  10. object WrapOut extends Serializable

    Permalink

    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.

Ungrouped