81 lines
1 KiB
Racket
81 lines
1 KiB
Racket
#lang scribble/manual
|
|
@(require (for-label racket))
|
|
|
|
@title{Dibrown}
|
|
Demand rate brownian movement generator.@section{related}
|
|
Classes/Dbrown, Classes/Demand, Classes/Duty, Classes/TDuty
|
|
@section{categories}
|
|
UGens>Demand
|
|
|
|
@section{description}
|
|
|
|
link::Classes/Dbrown:: returns numbers in the continuous range between
|
|
|
|
@racketblock[lo:: and ]
|
|
|
|
@racketblock[hi:: ,
|
|
Dibrown returns integer values.
|
|
|
|
|
|
The arguments can be a number or any other UGen.
|
|
|
|
|
|
See link::Classes/Pbrown::, link::Classes/BrownNoise:: for structurally related
|
|
equivalents.
|
|
|
|
|
|
]
|
|
@section{classmethods}
|
|
|
|
|
|
@section{method}
|
|
new
|
|
|
|
@section{argument}
|
|
lo
|
|
|
|
Minimum value.
|
|
|
|
|
|
@section{argument}
|
|
hi
|
|
|
|
Maximum value.
|
|
|
|
|
|
@section{argument}
|
|
step
|
|
|
|
Maximum step for each new value.
|
|
|
|
|
|
@section{argument}
|
|
length
|
|
|
|
Number of values to create. Use
|
|
@racketblock[inf:: for an infinite number.
|
|
|
|
|
|
]
|
|
@section{Examples}
|
|
|
|
|
|
|
|
@racketblock[
|
|
|
|
(
|
|
{
|
|
var a, freq, trig;
|
|
a = Dibrown(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;
|
|
)
|
|
|
|
::
|
|
|
|
]
|
|
|
|
|