OSCtoCV Library

Dependents:   OSCtoCVConverter

Revision:
6:7fb15b1b5459
Parent:
4:fe335dc8d53d
--- a/OSCtoCV_GateSequencer.cpp	Thu Feb 18 13:26:48 2016 +0000
+++ b/OSCtoCV_GateSequencer.cpp	Thu Feb 25 11:21:37 2016 +0000
@@ -9,7 +9,7 @@
 //-------------------------------------------------------------
 // Gate Sequencer  beat(Note values) length(Gate time) invert(invert Gate)
 
-int GateSeq(unsigned int bpm, unsigned int beat, unsigned int ch, float length, bool invert, bool gatesOff, bool syncoff)
+int GateSeq(uint16_t bpm, uint16_t beat, uint8_t ch, float length, bool invert, bool gatesOff, bool syncoff)
 {
     int i;
     static int gatetime[GATE_TOTAL], oldgatetime[GATE_TOTAL];
@@ -26,7 +26,7 @@
         } else {
 
             bar = (60.0f / bpm) * 4000000;
-            sync24 = (bar / 4) / 24; // sync24 not tested
+            //sync24 = (bar / 4) / 24; // sync24 not tested
             
             _bpm = bpm;
         }
@@ -73,7 +73,7 @@
         default:
             
             gatetime[ch] = bar / beat;
-            //sync24 = bar / 16;
+            sync24 = bar / 16;
             break;
     }