dust2
Generates random impulses from -1 to 1.
Syntax
ares dust2 kamp, kdensity
kres dust2 kamp, kdensity
kamp -- amplitude.
kdensity -- average number of impulses per second.
Examples
Here is an example of the dust2 opcode. It uses the file dust2.csd.
Example of the dust2 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 dust2 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 Dust2 (SuperCollider)
Author: Tito Latini
January 2012
New in Csound version 5.16
k-rate version fixed to documentation and SuperCollider, version 6.09