Debian Codegraph @

examples/rnd31_seed7.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -n ; no sound
6 ; For Non-realtime ouput leave only the line below:
7 ; -o rnd31_seed7.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14 0dbfs = 1
15
16 instr 1
17
18 i1 rnd31 1, 0.5, 7 ; i-rate random numbers with linear distribution, seed=7.
19 i2 rnd31 1, 0.5 ; (Note that the seed was used only in the first call.)
20 i3 rnd31 1, 0.5
21
22 print i1
23 print i2
24 print i3
25
26 endin
27
28 </CsInstruments>
29 <CsScore>
30
31 i 1 0 0
32 e
33 </CsScore>
34 </CsoundSynthesizer>