Debian Codegraph @

examples/ATScross.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 ATScross.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 ;ATSA wants a mono file!
19 ;it takes a while to analyze these files...
20 ires1 system_i 1,{{ atsa finneganswake1.flac finneganswake.ats }}
21 prints "\n***1st analyzed file is ready***\n\n"
22
23 ires2 system_i 1,{{ atsa drumsMlp.wav drumsMlp.ats }}
24 prints "\n***2nd analyzed file is ready***\n\n"
25
26
27 instr 1
28 ires1 ATSinfo "finneganswake.ats", 3 ; get number of partials
29 ires2 ATSinfo "drumsMlp.ats", 3 ; get number of partials
30 prints "\n***number of partials of finneganswake.ats = %d***\n\n", ires1
31 prints "\n***number of partials of drumsMlp.ats = %d***\n\n", ires2
32 ktime1 line 0, p3, 12.67
33 ktime2 line 0, p3, 2
34 kline line p4, p3, p5
35 ATSbufread ktime1, 1, "finneganswake.ats", ires1
36 aout ATScross ktime2, 1, "drumsMlp.ats", 1, kline, 1, 68 ; cross from p4 to p5
37 outs aout*2.5, aout*2.5
38
39 endin
40
41 </CsInstruments>
42 <CsScore>
43 ; sine wave.
44 f 1 0 16384 10 1
45 ; start end
46 i 1 0 12.7 0 1 ; voice --> drums
47 i 1 15 12.7 1 0 ; drums --> voice
48 e
49 </CsScore>
50 </CsoundSynthesizer>