Dxrand

object Dxrand extends ProductReader[Dxrand]

A demand-rate UGen which outputs random elements from a sequence. Dxrand forbid repetitions, whereas Drand allows duplicate elements to appear.

===Examples===

// sequence of constants
play {
 val in = Dxrand(Seq(3, 5, 7, 8, 11), inf)
 val tr = Impulse.kr(5)
 val v  = Demand.kr(tr, in)
 v.poll(tr)
 val f  = (v + 62).midiCps
 SinOsc.ar(f) * 0.1
}
See also
Companion
class
trait Product
trait Mirror
trait ProductReader[Dxrand]
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 read(in: RefMapIn, key: String, arity: Int): Dxrand