x-class noise generatorstrirandSignal Generators:Random (Noise) Generatorstrirandtrirand
Triangular distribution random number generator
Description
Triangular distribution random number generator. This is an x-class noise generator.
Syntaxares trirand krangeires trirand krangekres trirand krangePerformancekrange -- the range of the random numbers (-krange to +krange).
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 trirand opcode. It uses the file trirand.csd.
Example of the trirand 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 = 7506.261
See Alsobetarand,
bexprnd,
cauchy,
exprand,
gauss,
linrand,
pcauchy,
poisson,
unirand,
weibullCreditsAuthor: &nameparis;MIT, Cambridge1995Example written by &namekevin;.