TRand

object TRand extends ProductReader[TRand]

A UGen that generates a new random decimal value each time it is triggered, using a uniform distribution from lo to hi .

'''Note''': Audio-rate inputs for lo and hi are currently broken in SuperCollider, and will therefore be converted to control-rate inputs.

===Examples===

// random sine frequencies, triggered by mouse button
play {
 val tr = MouseButton.kr(lag = 0)
 val m  = Mix.fill(10)(SinOsc.ar(TRand.kr(200.0, 800.0, tr)))
 m * Linen.kr(tr, sustain = 0.025, release = 2)
}
See also
Companion
class
trait Product
trait Mirror
trait ProductReader[TRand]
class Object
trait Matchable
class Any

Type members

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from
Mirror

Value members

Concrete methods

def ar(lo: GE, hi: GE, trig: GE): TRand
Value Params
hi

upper limit of the output range

lo

lower limit of the output range

trig

signal to trigger new random number

def kr(lo: GE, hi: GE, trig: GE): TRand
Value Params
hi

upper limit of the output range

lo

lower limit of the output range

trig

signal to trigger new random number

def read(in: RefMapIn, key: String, arity: Int): TRand