OSCtoCV Library
Diff: OSCtoCV_LFO.cpp
- Revision:
- 4:fe335dc8d53d
- Parent:
- 1:981b62bb5c87
- Child:
- 6:7fb15b1b5459
--- a/OSCtoCV_LFO.cpp Sun Jan 31 12:55:17 2016 +0000 +++ b/OSCtoCV_LFO.cpp Tue Feb 16 11:31:12 2016 +0000 @@ -106,22 +106,17 @@ void SteppedLFO(unsigned int channelOffset, bool quantizeOff) { static uint8_t ch = channelOffset; - static uint8_t mcount, qmode, amode; + static uint8_t mcount; int waveform; static int _waveform = -1; static int steps; + uint8_t qmode; static float lfocv[8], glidecv[8]; unsigned int cv; static float qcv; float freq; static int jitter, jitterCount; - - qmode = (gCtrl[1] * (SCALE_NUM - 1.0f)); // Sequencer Quantize Mode (gCtrl[1]) - - amode = SCALE_AOUT * qmode; - - gAOUT.write_u16(amode); - + // select waveform ArdSW1(gArdSW[0]) waveform = CheckSubMode1(); @@ -230,6 +225,10 @@ if (quantizeOff) // quantize Off { qmode = Lin; + + } else { + + qmode = CheckQuantizeMode(); } switch (qmode)