Debian Codegraph @

examples/cpsmidib.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac -M0 ;;;RT audio I/O with MIDI in
5 ;-iadc ;;;uncomment -iadc if RT audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o cpsmidi.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 instr 1 ; move pitch bend wheel while you play
17
18 kcps cpsmidib
19 asig oscil 0.6, kcps, 1
20 printk2 kcps
21 outs asig, asig
22
23 endin
24
25 </CsInstruments>
26 <CsScore>
27 f0 20
28 ;sine wave.
29 f 1 0 16384 10 1
30
31 e
32 </CsScore>
33 </CsoundSynthesizer>