Debian Codegraph @

examples/outch.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac ;;;realtime audio out
5 ; For Non-realtime ouput leave only the line below:
6 ; -o outch.wav -W ;;; for file output any platform
7
8 ; By Stefano Cucchi - 2020
9
10 </CsOptions>
11 <CsInstruments>
12
13 sr = 44100
14 ksmps = 32
15 nchnls = 2
16 0dbfs = 1
17
18 instr 1
19
20 asig vco2 0.2, 100 ; Audio signal.
21 kout randomh 1, 2, 5 ; Extracts random number between 1 & 2 - 5 times per second.
22
23 outch kout,asig ; Sends the signal to the channel according to "kout".
24
25 printks "signal is sent to channel %d\\n", .2, kout ; Prints the channel where you hear the sound.
26 endin
27
28 </CsInstruments>
29 <CsScore>
30
31 i 1 0 15
32 e
33 </CsScore>
34 </CsoundSynthesizer>