OSC-CV Converter
Dependencies: Bonjour OSCReceiver TextLCD mbed mbed-rpc BurstSPI DebouncedInterrupt FastIO MIDI OSC OSCtoCV ClockControl
OSC to CV Converter
http://gtbts.tumblr.com/post/125663817741/osc-to-cv-converter-ver2-mbed-osctocv
Diff: main.cpp
- Revision:
- 11:ef7610cd7ebe
- Parent:
- 10:ccfeb687c3f2
- Child:
- 13:3f42e451a8d3
--- a/main.cpp Sat Mar 23 11:24:13 2013 +0000 +++ b/main.cpp Sat Mar 30 00:32:20 2013 +0000 @@ -580,7 +580,7 @@ inline void SetCV() { static int ch, quan; - float glidecv[8], oldcv[8]; + static float glidecv[8], oldcv[8]; unsigned int cv[8]; float qcv; @@ -1120,7 +1120,7 @@ if(recvlen <= 0) break; - if(!strncmp(buf, "#", 1)) // #bundle + if(buf[0] == '#') // #bundle { messagepos += 16; // skip #bundle & timetag recvlen -= 16;