Debian Codegraph @

examples/logicOR.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 ; Select audio/midi flags here according to platform
4 -odac -+rtmidi=virtual -M0 ;;;realtime audio out and virtual midi keyboard
5 ;-iadc ;;;uncomment -iadc if realtime audio input is needed too
6 </CsOptions>
7 <CsInstruments>
8 ;after a UDO from Rory Walsh
9 sr = 44100
10 ksmps = 32
11 nchnls = 2
12
13 instr 1 ;displays notes, midi channel and control number information
14
15 kstatus, kchan, kdata1, kdata2 midiin
16 k1 changed kstatus
17 k2 changed kchan
18 k3 changed kdata1
19 k4 changed kdata2
20 if((k1==1)||(k2==1)||(k3==1)||(k4==1)) then
21 printks "Value:%d ChanNo:%d CtrlNo:%d\n" , 0, kdata2, kchan, kdata1
22 endif
23
24 endin
25 </CsInstruments>
26 <CsScore>
27
28 i1 0 60 ;print values for 60 seconds
29
30 e
31 </CsScore>
32 </CsoundSynthesizer>