Debian Codegraph @

examples/evalstr.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 ; For Non-realtime ouput leave only the line below:
7 ; -o evalstr.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10 sr = 44100
11 nchnls = 1
12 ksmps = 32
13 0dbfs = 1
14
15 ; example by Stefano Cucchi - 2024
16
17 instr 2
18
19 ires1 evalstr {{
20 instr 3
21 a1 poscil p4, p5
22 out a1
23 endin
24 }}
25 print ires1 ; ... and returns 0
26
27 ;call the new instrument
28 ;(note that the overall performance is extended)
29 scoreline_i "i 3 0 3 .2 415"
30
31 endin
32
33 </CsInstruments>
34 <CsScore>
35 i2 0 1
36 </CsScore>
37 </CsoundSynthesizer>