Debian Codegraph @

examples/midic7.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac -+rtmidi=virtual -M0 ;;;realtime audio out and realtime midi in
5 ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
6 ; For Non-realtime ouput leave only the line below:
7 ; -o midic7.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
17 ; This example expects MIDI controller input on channel 1
18 ; run, play a note and move your midi controller 7 to see result
19
20 imax = 1
21 imin = 0
22 ichan = 1
23 ictlno= 7 ; = midi volume
24
25 kamp midic7 ictlno, imin, imax
26 printk2 kamp
27 asig oscili kamp, 220, 1
28 outs asig, asig
29
30 endin
31 </CsInstruments>
32 <CsScore>
33 ; no score events allowed
34 f 0 20 ;20 sec. for real-time MIDI events
35 f 1 0 4096 10 1 ;sine wave
36
37 e
38 </CsScore>
39 </CsoundSynthesizer>