Debian Codegraph @

examples/vcopy.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>; Select audio/midi flags here according to platform
3 ; Audio out Audio in No messages
4 -odac -iadc -d ;;;RT audio I/O
5 ; For Non-realtime ouput leave only the line below:
6 ; -o vcopy.wav -W ;;; for file output any platform
7 </CsOptions>
8 <CsInstruments>
9
10
11 sr=44100
12 kr=4410
13 ksmps=10
14 nchnls=2
15
16 instr 1 ;table playback
17 ar lposcil 1, 1, 0, 262144, 1
18 outs ar,ar
19 endin
20
21 instr 2
22 vcopy 2, 1, 20000 ;copy vector from sample to empty table
23 vmult 5, 20000, 262144 ;scale noise to make it audible
24 vcopy 1, 5, 20000 ;put noise into sample
25 turnoff
26 endin
27
28 instr 3
29 vcopy 1, 2, 20000 ;put original information back in
30 turnoff
31 endin
32
33 </CsInstruments>
34 <CsScore>
35 f1 0 262144 -1 "drumsMlp.wav" 0 4 0
36 f2 0 262144 2 0
37
38 f5 0 262144 21 3 30000
39
40 i1 0 4
41 i2 3 1
42
43 s
44 i1 0 4
45 i3 3 1
46 s
47
48 i1 0 4
49
50 </CsScore>
51 </CsoundSynthesizer>