Debian Codegraph @

examples/outic.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac -Q1 -M0 ;;;realtime audio out -+rtmidi=virtual
5 ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o outic.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 sr = 44100
12 ksmps = 32
13 nchnls = 2
14
15 instr 1
16
17 ikey notnum
18 ivel veloc
19 kbrt = 40 ;set controller 74 (=brightness)
20 outic 1, 74, kbrt, 0, 127 ;so filter closes a bit
21 midion 1, ikey, ivel ;play external synth
22
23 endin
24 </CsInstruments>
25 <CsScore>
26 f0 30 ;runs 30 seconds
27
28 e
29 </CsScore>
30 </CsoundSynthesizer>