Debian Codegraph @

examples/gen40.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 GEN40.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 ; every run time same values
17
18 kuser cuserrnd 0, 100, 1
19 printk .2, kuser
20 asig poscil .5, 220+kuser, 3
21 outs asig, asig
22 endin
23
24 instr 2 ; every run time different values
25
26 seed 0
27 kuser cuserrnd 0, 100, 1
28 printk .2, kuser
29 asig poscil .5, 220+kuser, 3
30 outs asig, asig
31 endin
32 </CsInstruments>
33 <CsScore>
34 f 1 0 16 -7 1 4 0 8 0 4 1 ;distrubution using GEN07
35 f 2 0 16384 40 1 ;GEN40 is to be used with cuserrnd
36 f 3 0 8192 10 1 ;sine
37
38 i 1 0 2
39 i 2 3 2
40 e
41 </CsScore>
42 </CsoundSynthesizer>