Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Bonjour OSCReceiver TextLCD mbed mbed-rpc BurstSPI DebouncedInterrupt FastIO MIDI OSC OSCtoCV ClockControl
Revision 2:83bc45c48526, committed 2012-12-26
- Comitter:
- casiotone401
- Date:
- Wed Dec 26 11:28:01 2012 +0000
- Parent:
- 1:fd4f70088311
- Child:
- 3:ca15241dd6b4
- Commit message:
- minor change
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Sun Dec 23 13:48:54 2012 +0000
+++ b/main.cpp Wed Dec 26 11:28:01 2012 +0000
@@ -52,8 +52,8 @@
#define SCALING_N 38400.0
#define INPUT_PORT 12345 // Input Port Number
-#define UPDATE_INTERVAL 60 // CV Update Interval (us)
-#define POLLING_INTERVAL 25 // Polling Interval (us)
+#define UPDATE_INTERVAL 200 // CV Update Interval (us)
+#define POLLING_INTERVAL 20 // Polling Interval (us)
//-------------------------------------------------------------
// DAC8568 Control Bits
@@ -393,7 +393,7 @@
case MODE_QChr:
- quan = 65535 / QUAN_RES1;
+ quan = 43690 / QUAN_RES1;
qcv = calibMap1[(unsigned int)(gOSC_cv[ch] / quan )];
glidecv[ch] = oldcv[ch] * gGlide + (qcv * SCALING_N) * (1.0f - gGlide);
@@ -405,7 +405,7 @@
case MODE_QMaj:
- quan = 65535 / QUAN_RES2;
+ quan = 43690 / QUAN_RES2;
qcv = calibMap2[(unsigned int)(gOSC_cv[ch] / quan )];
glidecv[ch] = oldcv[ch] * gGlide + (qcv * SCALING_N) * (1.0f - gGlide);
@@ -417,7 +417,7 @@
case MODE_QDor:
- quan = 65535 / QUAN_RES3;
+ quan = 43690 / QUAN_RES3;
qcv = calibMap3[(unsigned int)(gOSC_cv[ch] / quan )];
glidecv[ch] = oldcv[ch] * gGlide + (qcv * SCALING_N) * (1.0f - gGlide);
@@ -429,7 +429,7 @@
case MODE_QPen:
- quan = 65535 / QUAN_RES4;
+ quan = 43690 / QUAN_RES4;
qcv = calibMap4[(unsigned int)(gOSC_cv[ch] / quan )];
glidecv[ch] = oldcv[ch] * gGlide + (qcv * SCALING_N) * (1.0f - gGlide);