Debian Codegraph @

examples/rndseed.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime audio out
5 ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o rndseed.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; by Menno Knevel 2021
12
13 sr = 44100
14 ksmps = 32
15 nchnls = 2
16 0dbfs = 1
17
18 rndseed .15 ; change value for a different sequence
19 ; Generate a random number sequence from -1000 to 1000 according to rndseed
20 instr 1
21
22 kbin = birnd(1000)
23 printk2 kbin
24 asig vco2 .5, 100
25 ares rezzy asig, 1500+kbin, 20
26 outs ares, ares
27 endin
28
29 </CsInstruments>
30 <CsScore>
31 i 1 0 .3
32 i 1 + .
33 i 1 + .
34 i 1 + .
35 i 1 + .
36 i 1 + .
37 i 1 + .
38 e
39 </CsScore>
40 </CsoundSynthesizer>