|Home · Standalone · rtcmix~ · uRTcmix · iRTcmix · Tutorials · Reference|
an open-source digital signal processing and sound synthesis language
|about · links · contact|
NOISE -- generate white noise
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
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 NotesThe 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 Scoresvery basic:
rtsetparams(44100, 1) load("NOISE") ampenv = maketable("window", 1000, "hanning") NOISE(0.0, 2.5, 20000*ampenv)
See AlsoBROWN, CRACKLE, DUST, HENON, IIR, LATOOCARFIAN, PINK