Debian Codegraph @

examples/schedulek.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 schedulek.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; By Stefano Cucchi 2024
12 sr = 44100
13 ksmps = 32
14 nchnls = 2
15 0dbfs = 1
16
17 instr 1
18
19 kfreqnote randomh 0.1, 6.3, 2
20 kTrigger metro kfreqnote
21 if kTrigger == 1 then ;
22
23 schedulek 10, 0, 0.1 ;call the instrument
24 endif
25
26 endin
27
28 instr 10
29
30 a1 oscili 0.2, 440, 2
31 outs a1, a1
32
33 endin
34
35 </CsInstruments>
36 <CsScore>
37 f 2 0 4096 10 1 0.9 0.8 0.7 0.6
38
39 i 1 0 10
40 e
41 </CsScore>
42 </CsoundSynthesizer>