an open-source digital signal processing and sound synthesis language
about · links · contact
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.



   p0 = output start time (seconds)
   p1 = duration (seconds)
   p2 = amplitude (absolute, for 16-bit soundfiles: 0-32768)
   p3 = pan (0-1 stereo; 0.5 is middle) [optional, default is .5]

   p2 (amplitude) and p3 (pan) can receive 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