x-class noise generatorslinrandSignal Generators:Random (Noise) Generatorslinrandlinrand
Linear distribution random number generator (positive values only).
Description
Linear distribution random number generator (positive values only). This is an x-class noise generator.
Syntaxares linrand krangeires linrand krangekres linrand krangePerformancekrange -- the range of the random numbers (0 - krange). Outputs only positive numbers.
For more detailed explanation of these distributions, see:
C. Dodge - T.A. Jerse 1985. Computer music. Schirmer books. pp.265 - 286D. Lorrain. A panoply of stochastic cannons. In C. Roads, ed. 1989. Music machine . Cambridge, Massachusetts: MIT press, pp. 351 - 379.Examples
Here is an example of the linrand opcode. It uses the file linrand.csd.
Example of the linrand opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.
Its output should include a line like this:
instr 1: i1 = 0.394
See Alsoseed,
betarand,
bexprnd,
cauchy,
exprand,
gauss,
pcauchy,
poisson,
trirand,
unirand,
weibullCreditsAuthor: &nameparis;MIT, Cambridge1995Example written by &namekevin;.