SuperCollider CLASSES

Dseries

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

Description

Demand rate arithmetic series UGen.

See Pseries for structurally related equivalent.

Class Methods

*new (start: 1, step: 1, length: inf)

Arguments:

start

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

step

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

length

Number of values to create. Can be a number or any other UGen.

Inherited class methods

Instance Methods

Inherited instance methods

Examples

(
{
    var a, freq, trig;
    a = Dseries(0, 1, 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 = Dseries(0, 1, inf);
    trig = Dust.kr(MouseX.kr(1, 40, 1));
    freq = Demand.kr(trig, 0, a) % 15 * 30 + 340;
    SinOsc.ar(freq) * 0.1

}.play;
)