Dbrown:
Filter:
Classes | UGens > Demand

Dbrown : DUGen : UGen : AbstractFunction : Object

Demand rate brownian movement generator.
Source: Demand.sc
Subclasses: Dibrown

Description

Dbrown returns numbers in the continuous range between lo and hi , Dibrown returns integer values.

The arguments can be a number or any other UGen.

See Pbrown, BrownNoise for structurally related equivalents.

Class Methods

Dbrown.new(lo: 0, hi: 1, step: 0.01, length: inf)

Arguments:

lo

Minimum value.

hi

Maximum value.

step

Maximum step for each new value.

length

Number of values to create. Use inf for an infinite number.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

(
{
    var a, freq, trig;
    a = Dbrown(0, 15, 1, inf);
    trig = Impulse.kr(MouseX.kr(1, 40, 1));
    freq = Demand.kr(trig, 0, a) * 30 + 340;
    SinOsc.ar(freq) * 0.1

}.play;
)