Debian Codegraph @

examples/cpuprc.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 cpuprc.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
17 cpuprc 1, 2
18 cpuprc 2, 30
19
20 instr 1 ;cpu processing-time percent usage is set to 2% for each note
21
22 asig oscil 0.2, 440, 1
23 outs asig, asig
24
25 endin
26
27 instr 2 ;cpu processing-time percent usage is set to 30% for each note
28 ;so the 4 notes of the score exceeds 100% by far
29 asig oscil 0.2, 440, 1
30 outs asig, asig
31
32 endin
33 </CsInstruments>
34 <CsScore>
35 f 1 0 32768 10 1 ; sine wave
36
37 i 1 0 1
38 i 1 0 1
39 i 1 0 1
40 i 1 0 1
41
42 ;too many notes to process,
43 ;check Csound output!
44 i 2 3 1
45 i 2 3 1
46 i 2 3 1
47 i 2 3 1
48 e
49 </CsScore>
50 </CsoundSynthesizer>