OSCtoCV Library
Diff: OSCtoCV_GateSequencer.cpp
- Revision:
- 1:981b62bb5c87
- Parent:
- 0:cd43a974c54c
- Child:
- 4:fe335dc8d53d
--- a/OSCtoCV_GateSequencer.cpp Sun Jan 17 09:30:32 2016 +0000 +++ b/OSCtoCV_GateSequencer.cpp Thu Jan 28 11:39:47 2016 +0000 @@ -9,7 +9,7 @@ //------------------------------------------------------------- // Gate Sequencer beat(Note values) length(Gate time) invert(invert Gate) -int GateSeq(int bpm, int beat, int ch, int length, bool invert, bool gatesoff, bool syncoff) +int GateSeq(unsigned int bpm, unsigned int beat, unsigned int ch, float length, bool invert, bool gatesOff, bool syncoff) { int i; static int gatetime[GATE_TOTAL], oldgatetime[GATE_TOTAL]; @@ -103,7 +103,7 @@ oldgatetime[ch] = time; - if (!gatesoff) + if (!gatesOff) { gGATES[ch] = true; @@ -118,7 +118,7 @@ oldgatetime[ch] = time; - if (!gatesoff) + if (!gatesOff) { gGATES[ch] = false; @@ -131,7 +131,7 @@ } else if (time > oldgatetime[ch] + (gatetime[ch] - gatetime[ch] / length) && !invert) { - if (!gatesoff) + if (!gatesOff) { gGATES[ch] = false; @@ -144,7 +144,7 @@ } else if (time > oldgatetime[ch] + (gatetime[ch] - gatetime[ch] / length) && invert) { - if (!gatesoff) + if (!gatesOff) { gGATES[ch] = true;