Debian Codegraph @

examples/ATSinfo-2.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -n ;;;no audio out
5 </CsOptions>
6 <CsInstruments>
7 ;example by joachim heintz
8 sr = 44100
9 ksmps = 32
10 nchnls = 2
11 0dbfs = 1
12
13 instr 1 ; "fox.ats" has been created by ATSanal
14 Sfile = "fox.ats"
15 isr ATSinfo Sfile, 0
16 ifs ATSinfo Sfile, 1
17 iws ATSinfo Sfile, 2
18 inp ATSinfo Sfile, 3
19 inf ATSinfo Sfile, 4
20 ima ATSinfo Sfile, 5
21 imf ATSinfo Sfile, 6
22 id ATSinfo Sfile, 7
23 ift ATSinfo Sfile, 8
24 prints {{
25 Sample rate = %d Hz
26 Frame Size = %d samples
27 Window Size = %d samples
28 Number of Partials = %d
29 Number of Frames = %d
30 Maximum Amplitude = %f
31 Maximum Frequency = %f Hz
32 Duration = %f seconds
33 ATS file Type = %d
34 }}, isr, ifs, iws, inp, inf, ima, imf, id, ift
35 endin
36 </CsInstruments>
37 <CsScore>
38 i 1 0 0
39 </CsScore>
40 </CsoundSynthesizer>