dust
Generates random impulses from 0 to 1.
Syntax
ares dust kamp, kdensity
kres dust kamp, kdensity
kamp -- amplitude.
kdensity -- average number of impulses per second.
Examples
Here is an example of the dust opcode. It uses the file dust.csd.
Example of the dust opcode. |
---|
| <CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
-odac ;;;realtime audio out
;-iadc ;;;uncomment -iadc if realtime audio input is needed too
; For Non-realtime ouput leave only the line below:
; -o oscil.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1
instr 1
kdens expon 2, p3, 20000
aout dust 0.5, kdens
outs aout, aout
endin
</CsInstruments>
<CsScore>
i1 0 10
e
</CsScore>
</CsoundSynthesizer>
|
See also
Random (Noise) Generators
Credits
Based on James McCartney's Dust ugen (SuperCollider)
Author: Tito Latini
January 2012
New in Csound version 5.16
k-rate version fixed to documentation and SuperCollider,
version 6.09