an open-source digital signal processing and sound synthesis language
about · links · contact
NOISE -- generate white noise
in RTcmix/insts/std


quick syntax:
NOISE(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 0]

   p2 (amplitude) and p3 (pan) can receive dynamic updates from a table or
   real-time control source.
   
   Author: JGG , 24 Dec 2002, rev. 7/9/04



NOISE makes white (or pseudo-white...) noise. It is very noisy. It is good for annoying your family, unless your family is a bunch of weirdoes.

Usage Notes

The series of random numbers that makes the noise is affected by any calls to the srand scorefile command in the script. If there are no such calls, the random seed is 1.

Output may be mono or stereo.

Sample Scores

very basic:
   rtsetparams(44100, 1)
   load("NOISE")

   ampenv = maketable("window", 1000, "hanning")
   NOISE(0.0, 2.5, 20000*ampenv)


See Also

BROWN, CRACKLE, DUST, HENON, IIR, LATOOCARFIAN, PINK