x-class noise generatorsbetarandSignal Generators:Random (Noise) Generatorsbetarandbetarand
Beta distribution random number generator (positive values only).
Description
Beta distribution random number generator (positive values only). This is an x-class noise generator.
Syntaxares betarand krange, kalpha, kbetaires betarand krange, kalpha, kbetakres betarand krange, kalpha, kbetaPerformancekrange -- range of the random numbers (0 - krange).
kalpha -- alpha value. If kalpha is smaller than one, smaller values favor values near 0.
kbeta -- beta value. If kbeta is smaller than one, smaller values favor values near krange.
If both kalpha and kbeta equal one we have uniform distribution. If both kalpha and kbeta are greater than one we have a sort of Gaussian distribution. 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 betarand opcode. It uses the file betarand.csd.
Example of the betarand 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:
instr 1: i1 = 24583.412
See Alsoseed,
bexprnd,
cauchy,
exprand,
gauss,
linrand,
pcauchy,
poisson,
trirand,
unirand,
weibullCreditsAuthor: &nameparis;MIT, Cambridge1995Existed in 3.30Example written by &namekevin;.