OSCtoCV Library
Diff: OSCtoCV_Euclidean.h
- Revision:
- 2:9fa7540890c9
- Parent:
- 1:981b62bb5c87
- Child:
- 4:fe335dc8d53d
--- a/OSCtoCV_Euclidean.h Thu Jan 28 11:39:47 2016 +0000 +++ b/OSCtoCV_Euclidean.h Thu Jan 28 14:11:50 2016 +0000 @@ -15,13 +15,13 @@ // Euclidean Sequencer Functions // Euclidean Sequencer -void EuclideanSeq(int trigger, bool reset, bool gatesoff, bool auto_offset); +unsigned int EuclideanSeq(int trigger, bool reset, bool gatesoff, bool auto_offset); // Init Euclidean Sequencer void InitEuclideanSeq(void); // Euclid calculation function -unsigned int Euclid(int n, int k, int o); +inline unsigned int Euclid(int n, int k, int o); // Reads a bit of a number inline int BitRead(uint16_t b, int bitPos); @@ -36,7 +36,7 @@ inline unsigned int ConcatBin(unsigned int bina, unsigned int binb); // routine triggered by each beat -void Sync(int active_channel, bool gatesoff); +inline void Sync(int active_channel, bool gatesoff); /* 3 functions to read each encoder returns +1, 0 or -1 dependent on direction