Debian Codegraph @

examples/ATSread.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;RT audio out
5 ;-iadc ;;;uncomment -iadc if RT audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o ATSread.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 }} ; default settings
19
20 instr 1
21
22 ktime line 0, p3, 2
23 kfreq, kamp ATSread ktime, "beats.ats", 10 ; take the 10th partial
24 aenv linen 1, 0, p3, .1 ; envelope to avoid clicks
25 aout oscili 0.8, kfreq, 1
26 outs aout * aenv, aout * aenv
27
28 endin
29
30 </CsInstruments>
31 <CsScore>
32 f 1 0 16384 10 1 ;sine wave.
33
34 i 1 0 1 ; fast speed
35 i 1 2 2 ; normal
36 i 1 5 10 ; 5x slower
37 e
38 </CsScore>
39 </CsoundSynthesizer>