Debian Codegraph @

examples/getcfg.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime audio out
5 -iadc ;;;uncomment -iadc if realtime audio input is needed too
6 </CsOptions>
7 <CsInstruments>
8
9 sr = 44100
10 ksmps = 32
11 nchnls = 2
12 0dbfs = 1
13
14 instr 1
15
16 S1 getcfg 1 ; -+max_str_len
17 S2 getcfg 2 ; -i
18 S3 getcfg 3 ; -o
19 S4 getcfg 4 ; RTaudio
20 S5 getcfg 5 ; -t
21 S6 getcfg 6 ; os system host
22 S7 getcfg 7 ; callback
23
24 prints "------------------------------"
25 prints "\nMax string len : "
26 prints S1
27 prints "\nInput file name (-i) : "
28 prints S2
29 prints "\nOutput file name (-o) : "
30 prints S3
31 prints "\nRTaudio (-odac) : "
32 prints S4
33 prints "\nBeat mode (-t)? : "
34 prints S5
35 prints "\nHost Op. Sys. : "
36 prints S6
37 prints "\nCallback ? : "
38 prints S7
39 prints "\n"
40 prints "------------------------------\n"
41
42 endin
43
44 </CsInstruments>
45 <CsScore>
46 i 1 0 0
47 e
48 </CsScore>
49 </CsoundSynthesizer>