Debian Codegraph @

examples/ATSadd.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 ATSadd.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 ;ATSA wants a mono file!
18 ires system_i 1,{{ atsa fox.wav fox.ats }} ; default settings
19
20 instr 1
21 ; synthesize 30 partials, using a ipartialoffset of 0 and ipartialincr of 2,
22 ; which means that we will start from the first partial and synthesize 30 partials in total,
23 ; skipping every other one (ie. partial 1, 3, 5,..).
24 ktime line 0, p3, 2.756
25 asig ATSadd ktime, 1, "fox.ats", 1, 30, 0, 2
26 outs asig*2.5, asig*2.5 ;amplify
27
28 endin
29
30
31 </CsInstruments>
32 <CsScore>
33 f 1 0 16384 10 1 0 .5 0 .3 0 .15 ;square wave
34
35 i 1 0 2.756
36 e
37 </CsScore>
38 </CsoundSynthesizer>