dust

dust — Random impulses.

Description

Generates random impulses from 0 to 1.

Syntax

ares dust kamp, kdensity
kres dust kamp, kdensity

Performance

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 259. Example of the dust opcode.

See the sections Real-time Audio and Command Line Flags for more information on using command line flags.

<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

dust2 gausstrig mpulse

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