de.sciss.synth.ugen.NoiseUGens.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalacollider_2.9.2 Show documentation
Show all versions of scalacollider_2.9.2 Show documentation
A sound synthesis library for the SuperCollider server
The newest version!
/*
* NoiseUGens.scala
* (ScalaCollider-UGens)
*
* This is a synthetically generated file.
* ScalaCollider-UGens version: 1.0.1
*/
package de.sciss.synth
package ugen
import collection.immutable.{IndexedSeq => IIdxSeq}
object WhiteNoise {
def kr: WhiteNoise = kr()
def kr(mul: GE = 1.0f) = apply(control, mul)
def ar: WhiteNoise = ar()
def ar(mul: GE = 1.0f) = apply(audio, mul)
}
final case class WhiteNoise(rate: Rate, mul: GE) extends UGenSource.SingleOut("WhiteNoise") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(mul.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = BinaryOp.Times.make1(new UGen.SingleOut(name, rate, IIdxSeq.empty, true), _args(0))
}
object GrayNoise {
def kr: GrayNoise = kr()
def kr(mul: GE = 1.0f) = apply(control, mul)
def ar: GrayNoise = ar()
def ar(mul: GE = 1.0f) = apply(audio, mul)
}
final case class GrayNoise(rate: Rate, mul: GE) extends UGenSource.SingleOut("GrayNoise") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(mul.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = BinaryOp.Times.make1(new UGen.SingleOut(name, rate, IIdxSeq.empty, true), _args(0))
}
object ClipNoise {
def kr: ClipNoise = kr()
def kr(mul: GE = 1.0f) = apply(control, mul)
def ar: ClipNoise = ar()
def ar(mul: GE = 1.0f) = apply(audio, mul)
}
final case class ClipNoise(rate: Rate, mul: GE) extends UGenSource.SingleOut("ClipNoise") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(mul.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = BinaryOp.Times.make1(new UGen.SingleOut(name, rate, IIdxSeq.empty, true), _args(0))
}
object PinkNoise {
def kr: PinkNoise = kr()
def kr(mul: GE = 1.0f) = apply(control, mul)
def ar: PinkNoise = ar()
def ar(mul: GE = 1.0f) = apply(audio, mul)
}
final case class PinkNoise(rate: Rate, mul: GE) extends UGenSource.SingleOut("PinkNoise") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(mul.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = BinaryOp.Times.make1(new UGen.SingleOut(name, rate, IIdxSeq.empty, true), _args(0))
}
object BrownNoise {
def kr: BrownNoise = kr()
def kr(mul: GE = 1.0f) = apply(control, mul)
def ar: BrownNoise = ar()
def ar(mul: GE = 1.0f) = apply(audio, mul)
}
final case class BrownNoise(rate: Rate, mul: GE) extends UGenSource.SingleOut("BrownNoise") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(mul.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = BinaryOp.Times.make1(new UGen.SingleOut(name, rate, IIdxSeq.empty, true), _args(0))
}
/**
* A UGen generating random impulses with values ranging from
* `0` to `+1`. The pulse duration is one sample for audio-rate
* and one block for control-rate operation.
*
* @see [[de.sciss.synth.ugen.Dust2]]
* @see [[de.sciss.synth.ugen.TRand]]
*/
object Dust {
def kr: Dust = kr()
/**
* @param density the average number of impulses per second
*/
def kr(density: GE = 1.0f) = apply(control, density)
def ar: Dust = ar()
/**
* @param density the average number of impulses per second
*/
def ar(density: GE = 1.0f) = apply(audio, density)
}
/**
* A UGen generating random impulses with values ranging from
* `0` to `+1`. The pulse duration is one sample for audio-rate
* and one block for control-rate operation.
*
* @param density the average number of impulses per second
*
* @see [[de.sciss.synth.ugen.Dust2]]
* @see [[de.sciss.synth.ugen.TRand]]
*/
final case class Dust(rate: Rate, density: GE) extends UGenSource.SingleOut("Dust") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(density.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args, true)
}
/**
* A UGen generating random impulses with values ranging from
* `-1` to `+1`. The pulse duration is one sample for audio-rate
* and one block for control-rate operation.
*
* @see [[de.sciss.synth.ugen.Dust]]
* @see [[de.sciss.synth.ugen.TRand]]
*/
object Dust2 {
def kr: Dust2 = kr()
/**
* @param density the average number of impulses per second
*/
def kr(density: GE = 1.0f) = apply(control, density)
def ar: Dust2 = ar()
/**
* @param density the average number of impulses per second
*/
def ar(density: GE = 1.0f) = apply(audio, density)
}
/**
* A UGen generating random impulses with values ranging from
* `-1` to `+1`. The pulse duration is one sample for audio-rate
* and one block for control-rate operation.
*
* @param density the average number of impulses per second
*
* @see [[de.sciss.synth.ugen.Dust]]
* @see [[de.sciss.synth.ugen.TRand]]
*/
final case class Dust2(rate: Rate, density: GE) extends UGenSource.SingleOut("Dust2") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(density.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args, true)
}
object Crackle {
def kr: Crackle = kr()
def kr(chaos: GE = 1.5f) = apply(control, chaos)
def ar: Crackle = ar()
def ar(chaos: GE = 1.5f) = apply(audio, chaos)
}
final case class Crackle(rate: Rate, chaos: GE) extends UGenSource.SingleOut("Crackle") {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(chaos.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args)
}
object Logistic {
def kr: Logistic = kr()
def kr(chaos: GE = 3.0f, freq: GE = 1000.0f, init: GE = 0.5f) = apply(control, chaos, freq, init)
def ar: Logistic = ar()
def ar(chaos: GE = 3.0f, freq: GE = 1000.0f, init: GE = 0.5f) = apply(audio, chaos, freq, init)
}
final case class Logistic(rate: Rate, chaos: GE, freq: GE, init: GE) extends UGenSource.SingleOut("Logistic") {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(chaos.expand, freq.expand, init.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args)
}
object Hasher {
def kr(in: GE) = apply(control, in)
def ar(in: GE) = apply(audio, in)
}
final case class Hasher(rate: Rate, in: GE) extends UGenSource.SingleOut("Hasher") {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(in.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args)
}
object MantissaMask {
def kr(in: GE, bits: GE = 3.0f) = apply(control, in, bits)
def ar(in: GE, bits: GE = 3.0f) = apply(audio, in, bits)
}
final case class MantissaMask(rate: Rate, in: GE, bits: GE) extends UGenSource.SingleOut("MantissaMask") {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(in.expand, bits.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args)
}
object LFClipNoise {
def kr: LFClipNoise = kr()
def kr(freq: GE = 500.0f) = apply(control, freq)
def ar: LFClipNoise = ar()
def ar(freq: GE = 500.0f) = apply(audio, freq)
}
final case class LFClipNoise(rate: Rate, freq: GE) extends UGenSource.SingleOut("LFClipNoise") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(freq.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args, true)
}
object LFNoise0 {
def kr: LFNoise0 = kr()
def kr(freq: GE = 500.0f) = apply(control, freq)
def ar: LFNoise0 = ar()
def ar(freq: GE = 500.0f) = apply(audio, freq)
}
final case class LFNoise0(rate: Rate, freq: GE) extends UGenSource.SingleOut("LFNoise0") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(freq.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args, true)
}
object LFNoise1 {
def kr: LFNoise1 = kr()
def kr(freq: GE = 500.0f) = apply(control, freq)
def ar: LFNoise1 = ar()
def ar(freq: GE = 500.0f) = apply(audio, freq)
}
final case class LFNoise1(rate: Rate, freq: GE) extends UGenSource.SingleOut("LFNoise1") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(freq.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args, true)
}
object LFNoise2 {
def kr: LFNoise2 = kr()
def kr(freq: GE = 500.0f) = apply(control, freq)
def ar: LFNoise2 = ar()
def ar(freq: GE = 500.0f) = apply(audio, freq)
}
final case class LFNoise2(rate: Rate, freq: GE) extends UGenSource.SingleOut("LFNoise2") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(freq.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args, true)
}
final case class Rand(lo: GE = 0.0f, hi: GE = 1.0f) extends UGenSource.SingleOut("Rand") with ScalarRated with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(lo.expand, hi.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, scalar, _args, true)
}
final case class IRand(lo: GE = 0.0f, hi: GE = 127.0f) extends UGenSource.SingleOut("IRand") with ScalarRated with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(lo.expand, hi.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, scalar, _args, true)
}
object TRand {
def kr(lo: GE = 0.0f, hi: GE = 1.0f, trig: GE) = apply(control, lo, hi, trig)
def ar(lo: GE = 0.0f, hi: GE = 1.0f, trig: GE) = apply(audio, lo, hi, trig)
}
final case class TRand(rate: Rate, lo: GE, hi: GE, trig: GE) extends UGenSource.SingleOut("TRand") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(lo.expand, hi.expand, trig.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args, true)
}
object TExpRand {
def kr(lo: GE = 0.01f, hi: GE = 1.0f, trig: GE) = apply(control, lo, hi, trig)
def ar(lo: GE = 0.01f, hi: GE = 1.0f, trig: GE) = apply(audio, lo, hi, trig)
}
final case class TExpRand(rate: Rate, lo: GE, hi: GE, trig: GE) extends UGenSource.SingleOut("TExpRand") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(lo.expand, hi.expand, trig.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args, true)
}
object TIRand {
def kr(lo: GE = 0.0f, hi: GE = 127.0f, trig: GE) = apply(control, lo, hi, trig)
def ar(lo: GE = 0.0f, hi: GE = 127.0f, trig: GE) = apply(audio, lo, hi, trig)
}
final case class TIRand(rate: Rate, lo: GE, hi: GE, trig: GE) extends UGenSource.SingleOut("TIRand") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(lo.expand, hi.expand, trig.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args, true)
}
final case class NRand(lo: GE = 0.0f, hi: GE = 127.0f, n: GE = 0.0f) extends UGenSource.SingleOut("NRand") with ScalarRated with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(lo.expand, hi.expand, n.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, scalar, _args, true)
}
final case class LinRand(lo: GE = 0.0f, hi: GE = 127.0f, minMax: GE = 0.0f) extends UGenSource.SingleOut("LinRand") with ScalarRated with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(lo.expand, hi.expand, minMax.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, scalar, _args, true)
}
final case class ExpRand(lo: GE = 0.01f, hi: GE = 1.0f) extends UGenSource.SingleOut("ExpRand") with ScalarRated with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(lo.expand, hi.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, scalar, _args, true)
}
/**
* '''Warning''': The argument order is different from its sclang counterpart.
*/
object CoinGate {
def kr(in: GE, prob: GE = 0.5f) = apply(control, in, prob)
def ar(in: GE, prob: GE = 0.5f) = apply(audio, in, prob)
}
/**
* '''Warning''': The argument order is different from its sclang counterpart.
*/
final case class CoinGate(rate: Rate, in: GE, prob: GE) extends UGenSource.SingleOut("CoinGate") with UsesRandSeed {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(prob.expand, in.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args, true)
}
object RandSeed {
def ir: RandSeed = ir()
def ir(trig: GE = 1.0f, seed: GE = 56789.0f) = apply(scalar, trig, seed)
def kr: RandSeed = kr()
def kr(trig: GE = 1.0f, seed: GE = 56789.0f) = apply(control, trig, seed)
}
final case class RandSeed(rate: Rate, trig: GE, seed: GE) extends UGenSource.SingleOut("RandSeed") with HasSideEffect {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(trig.expand, seed.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args, false, true)
}
object RandID {
def ir: RandID = ir()
def ir(id: GE = 0.0f) = apply(scalar, id)
def kr: RandID = kr()
def kr(id: GE = 0.0f) = apply(control, id)
}
final case class RandID(rate: Rate, id: GE) extends UGenSource.SingleOut("RandID") with HasSideEffect {
protected def makeUGens: UGenInLike = unwrap(IIdxSeq(id.expand))
protected def makeUGen(_args: IIdxSeq[UGenIn]): UGenInLike = new UGen.SingleOut(name, rate, _args, false, true)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy