SuperCollider CLASSES (extension)

TBrownRand
ExtensionExtension

triggered random walk generator
Inherits from: UGen : AbstractFunction : Object

Description

Generates a random walk from lo to hi with a Gendyn distribution each time the trig signal changes from nonpositive to positive values.

Class Methods

*ar (lo: 0, hi: 1, dev: 1, dist: 0, trig: 0, mul: 1, add: 0)

*kr (lo: 0, hi: 1, dev: 1, dist: 0, trig: 0, mul: 1, add: 0)

Arguments:

lo

minimum value

hi

maximum value

dev

maximum step (0-1)

dist

Gendyn distribution (0-5: see Gendy1 for details)

trig

trigger signal

Inherited class methods

Instance Methods

Inherited instance methods

Examples

(
{
    var trig = Dust.kr(10);
    SinOsc.ar(
        TBrownRand.kr(300, 3000, 1.0, MouseX.kr(0, 5), trig)
    ) * 0.1
}.play;
)

(
{
    var trig = Dust.kr(10);
    Pan2.ar(
        SinOsc.ar(LinExp.kr(TBrownRand.kr(dev:0.2, trig:trig), 0, 1, 300, 3000)),
        TBrownRand.kr(-1.0, 1.0, 1.0, 4, trig),
        0.1
    )
}.play;
)