Debian Codegraph @

examples/ATSinfo.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
8 ;example by joachim heintz (& Menno Knevel)
9
10 sr = 44100
11 ksmps = 32
12 nchnls = 2
13 0dbfs = 1
14 ;ATSA wants a mono file!
15 ires system_i 1,{{ atsa fox.wav fox.ats }} ; default settings
16
17 instr 1
18 Sfile = "fox.ats"
19 isr ATSinfo Sfile, 0
20 ifs ATSinfo Sfile, 1
21 iws ATSinfo Sfile, 2
22 inp ATSinfo Sfile, 3
23 inf ATSinfo Sfile, 4
24 ima ATSinfo Sfile, 5
25 imf ATSinfo Sfile, 6
26 id ATSinfo Sfile, 7
27 ift ATSinfo Sfile, 8
28 prints {{
29 *****fox.ats*********************
30 0. Sample rate = %d Hz
31 1. Frame Size = %d samples
32 2. Window Size = %d samples
33 3. contains %d partials
34 4. contains %d frames
35 5. Max. Ampl. = %f
36 6. Max. Freq. = %f Hz
37 7. Duration = %f seconds
38 8. File Type = %d
39 *********************************\\n
40 }}, isr, ifs, iws, inp, inf, ima, imf, id, ift
41 endin
42 </CsInstruments>
43 <CsScore>
44 i 1 0 0
45 e
46 </CsScore>
47 </CsoundSynthesizer>