Debian Codegraph @

examples/rnd31.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 ; Audio out Audio in
5 -odac ;;;RT audio out
6 ; For Non-realtime ouput leave only the line below:
7 ; -o rnd31.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 ; Create random numbers at a-rate in the range -2 to 2 with
18 a31 rnd31 2, -0.5 ; a triangular distribution, seed from the current time.
19 afreq = a31 * 500 + 100 ; Use the random numbers to choose a frequency.
20 a1 oscili .5, afreq ; uses sine
21 outs a1, a1
22
23 endin
24
25 </CsInstruments>
26 <CsScore>
27 i 1 0 1
28 e
29 </CsScore>
30 </CsoundSynthesizer>