Debian Codegraph @

src/Examples/FLOSS Manual Examples/08 Other Communication/08B03_Serial_Read.csd

raw
1 <CsoundSynthesizer>
2 ; Example written by Matt Ingalls
3 ; run with a commandline something like:
4 ; csound --opcode-lib=serialOpcodes.dylib serialdemo.csd -odac -iadc
5
6 <CsOptions>
7 </CsOptions>
8 ;--opcode-lib=serialOpcodes.dylib -odac
9 <CsInstruments>
10
11 ksmps = 500 ; the default krate can be too fast for the arduino to handle
12 0dbfs = 1
13
14 instr 1
15 iPort serialBegin "/COM4", 9600
16 kVal serialRead iPort
17 printk2 kVal
18 endin
19
20 </CsInstruments>
21 <CsScore>
22 i 1 0 3600
23 </CsScore>
24 </CsoundSynthesizer>