PINK

Pink noise instrument.

in RTcmix/insts/neil


quick syntax:

PINK(outsk, dur, AMP[, 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 seconds no no  
p1 duration seconds no no  
p2 amplitude absolute, for 16-bit soundfiles: 0-32768 yes no  
p3 pan 0-1 stereo; 0.5 is middle yes yes default: .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


Algorithm by Andrew Simper (vellocet.com/dsp/noise/VRand.html), who credits these people, mainly from the music-dsp mailing list: Allan Herriman, James McCartney, Phil Burk and Paul Kellet, and the web page by Robin Whittle.

Usage Notes

Output may be mono or stereo.

Sample Score

   rtsetparams(44100, 2)
   load("PINK")

   PINK(0, dur=100, amp=4000, pan=0.5)

See Also

BROWN, CRACKLE, DUST, HENON, IIR, LATOOCARFIAN, NOISE