Csound Csound-dev Csound-tekno Search About

Re: Randomizing numerical values in orc's or sco's HOW?

Date1999-03-10 02:23
Fromrasmus ekman
SubjectRe: Randomizing numerical values in orc's or sco's HOW?
SONICMAN wrote:
> 
> Randomizing numerical values in orc's or sco's HOW?

use rnd(), birnd() function calls. Or rand/randi. 
All in a documentation set near you (unless it's old, in which 
case rnd/birnd may be called irnd/krnd, ibirnd/kbirnd).

In scores you can do random pseudoramping using tilde:

; p4 will be a random value between 4.5 and 10
i1 0  1  4.5
i1 0  1   ~
i1 0  1   ~
i1 1  1   ~
i1 2  1   ~
i1 2  1  10

This is limited to the same cases as other ramping, ie you must 
be using more than three instances of the same instrument. 
But you can always do it in the orc code.