Debian Codegraph @

examples/tableshuffle.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime audio out
5 ; For Non-realtime ouput leave only the line below:
6 ; -o tableshuffle.wav -W ;;; for file output any platform
7
8 ; By Stefano Cucchi 2020
9
10 </CsOptions>
11 <CsInstruments>
12
13 sr = 44100
14 ksmps = 32
15 nchnls = 2
16 0dbfs = 1
17
18 instr 1
19 kIndex phasor 1/p3
20 kIndex = kIndex * 16
21
22 if kIndex >= 15.99 then
23 tableshuffle 1; shuffle table 1
24 endif
25
26 kFreq table kIndex, 1, 0
27 asound oscili 0.3, kFreq
28 outch 1, asound
29 outch 2, asound
30
31 endin
32
33 </CsInstruments>
34 <CsScore>
35
36 f 1 0 16 -2 200 250 300 350 400 450 500 550 600 650 700 750 800 850 900 950
37
38 i1 0 4
39 i1 5 4
40 e
41
42 </CsScore>
43 </CsoundSynthesizer>