62 lines
723 B
Text
62 lines
723 B
Text
|
#lang scribble/manual
|
||
|
@(require (for-label racket))
|
||
|
|
||
|
@title{Dust}
|
||
|
Random impulses.@section{related}
|
||
|
Classes/Dust2
|
||
|
@section{categories}
|
||
|
UGens>Generators>Stochastic
|
||
|
|
||
|
|
||
|
@section{description}
|
||
|
|
||
|
|
||
|
Generates random impulses from 0 to +1.
|
||
|
|
||
|
|
||
|
@section{classmethods}
|
||
|
|
||
|
|
||
|
@section{method}
|
||
|
ar, kr
|
||
|
|
||
|
@section{argument}
|
||
|
density
|
||
|
Average number of impulses per second.
|
||
|
|
||
|
@section{argument}
|
||
|
mul
|
||
|
Output will be multiplied by this value.
|
||
|
|
||
|
@section{argument}
|
||
|
add
|
||
|
This value will be added to the output.
|
||
|
|
||
|
@section{Examples}
|
||
|
|
||
|
|
||
|
|
||
|
@racketblock[
|
||
|
|
||
|
(
|
||
|
SynthDef("help-Dust", { arg out=0;
|
||
|
Out.ar(out,
|
||
|
Dust.ar(200, 0.5)
|
||
|
)
|
||
|
}).play;
|
||
|
)
|
||
|
|
||
|
(
|
||
|
SynthDef("help-Dust", { arg out=0;
|
||
|
Out.ar(out,
|
||
|
Dust.ar(XLine.kr(20000, 2, 10), 0.5)
|
||
|
)
|
||
|
}).play;
|
||
|
)
|
||
|
|
||
|
::
|
||
|
|
||
|
]
|
||
|
|
||
|
|