Debian Codegraph @

examples/ATSinterpread.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;RT audio out
5 ;-iadc ;;;uncomment -iadc for RT audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o ATSinterpread.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 ; by Menno Knevel - 2021
17
18 ires system_i 1,{{ atsa fox.wav fox.ats }} ; ATSA wants a mono file!
19
20 instr 1
21
22 ktime line 0, p3, 2.65
23 ATSbufread ktime, 1, "fox.ats", p4
24 kamp ATSinterpread p5 ; get envelope from partial
25 aosc poscil3 kamp, p5
26 outs aosc * 8, aosc * 8
27
28 endin
29
30 </CsInstruments>
31 <CsScore>
32 ; partial index
33 s
34 i 1 0 2.65 12 1000
35 i 1 3 2.65 12 150
36 i 1 6 2.65 12 10000
37 s
38 i 1 0 2.65 72 1000
39 i 1 3 2.65 72 150
40 i 1 6 2.65 72 10000
41 e
42 </CsScore>
43 </CsoundSynthesizer>