Debian Codegraph @

examples/ATSpartialtap.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 ATSpartialtap.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 - 2023
17
18 ires1 system_i 1,{{ atsa drumsMlp.wav drumsMlp1.ats }} ; default settings
19 ires2 system_i 1,{{ atsa -h.8 -c8 drumsMlp.wav drumsMlp2.ats }} ; longer hopsize & more cycles
20
21 instr 1
22
23 ktime line 0, p3, 2
24 ATSbufread ktime, 1, p4 , 54
25 kfreq1, kam1 ATSpartialtap 5
26 kfreq2, kam2 ATSpartialtap 20
27 kfreq3, kam3 ATSpartialtap 30
28
29 aout1 oscil kam1, kfreq1, 1
30 aout2 oscil kam2, kfreq2, 1
31 aout3 oscil kam3, kfreq3, 1
32 aout = (aout1+aout2+aout3)*10 ; amplify some more
33 outs aout * p5, aout * p5
34 endin
35
36 </CsInstruments>
37 <CsScore>
38 f 1 0 16384 10 1 0 .5 0 .33 ; square-ish wave
39 ; stretch the drums...
40 i 1 0 2 "drumsMlp1.ats" 2.5 ; defaults settings for ATSA
41 i 1 3 10 "drumsMlp2.ats" 1 ; different settings
42 e
43 </CsScore>
44 </CsoundSynthesizer>