Random impulses.

in RTcmix/insts/neil

quick syntax:

DUST(outsk, dur, AMP[, DENSITY, min range, PAN])

CAPITALIZED parameters are pfield-enabled for table or dynamic control (see the maketable or makeconnection scorefile commands). Parameters after the [bracket] are optional and default to 0 unless otherwise noted.

Param Field Parameter Units Dynamic Optional Notes
p0 output start time - no no  
p1 duration seconds no no  
p2 amplitude multiplier - yes no  
p3 density average impulses per second yes no default: 5
p4 impulse range minimum -1 or 0 no no default: -1
p5 seed - no no default: system clock
p6 pan in percent-to-left format yes no default: 0.5

Parameters labled as Dynamic can receive dynamic updates from a table or real-time control source.

Author: Neil Thornock (neilthornock at gmail), 11/12/16

DUST generates randomly spaced impulses with a range of either 0 to 1 or -1 to 1. At very high densities, it generates white noise.

Inspired by the Dust and Dust2 ugens from SuperCollider.

Usage Notes

Output may be mono or stereo.

Sample Score

   rtsetparams(44100, 2)

   density = maketable("line", "nonorm", 1000, 0,0, 1,10)
   DUST(0, dur=100, amp=4000, density, minrange=-1, pan=0.5)

See Also