Debian Codegraph @

examples/urandom.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 urandom.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 ; Create random numbers at a-rate in the range -2 to 2
17
18 aur urandom -2, 2
19 afreq1 = aur * 500 + 100 ; Use the random numbers to choose a frequency.
20 afreq2 = aur * 500 + 200
21 a1 oscil .3, afreq1
22 a2 oscil .3, afreq2
23 outs a1, a2
24 endin
25
26 </CsInstruments>
27 <CsScore>
28 i 1 0 3
29 e
30 </CsScore>
31 </CsoundSynthesizer>