SuperCollider CLASSES

Dgeom

Demand rate geometric series UGen.
Inherits from: DUGen : UGen : AbstractFunction : Object

Description

Demand rate geometric series UGen.

See Pgeom for structurally related equivalent.

Class Methods

*new (start: 1, grow: 2, length: inf)

Arguments:

start

Start value. Can be a number or any other UGen.

grow

Value by which to grow (x = x[-1] * grow). Can be a number or any other UGen.

length

Number of values to create.

Discussion:

The arguments can be a number or any other ugen

Inherited class methods

Instance Methods

Inherited instance methods

Examples

// example

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

}.play;
)

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

}.play;
)