Debian Codegraph @

examples/urandom_krate.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_krate.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 k-rate in the range -1 to 1 at krate
17
18 k1 urandom ; with a uniform distribution.
19 printks "k1=%f\\n", 0.1, k1
20 asig1 poscil.2, k1 * 500 + 100
21 asig2 poscil.2, k1 * 500 + 200
22 outs asig1, asig2
23 endin
24
25 </CsInstruments>
26 <CsScore>
27 i 1 0 3
28 e
29 </CsScore>
30 </CsoundSynthesizer>