From: Frank <em...@us...> - 2009-10-28 17:26:15
|
Update of /cvsroot/alsamodular/qmidiarp/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv6743 Modified Files: midilfo.cpp Log Message: fixed quantization issue with drawn waveforms Index: midilfo.cpp =================================================================== RCS file: /cvsroot/alsamodular/qmidiarp/src/midilfo.cpp,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** midilfo.cpp 28 Oct 2009 07:56:29 -0000 1.10 --- midilfo.cpp 28 Oct 2009 17:25:45 -0000 1.11 *************** *** 206,210 **** lfoSample = customWave.at(mouseX * res * size); lfoSample.value = mouseY * 128; ! lfoSample.tick = mouseX * TICKS_PER_QUARTER * size; customWave.replace(mouseX * res * size, lfoSample); } --- 206,210 ---- lfoSample = customWave.at(mouseX * res * size); lfoSample.value = mouseY * 128; ! lfoSample.tick = (int)(mouseX * res) * size * TICKS_PER_QUARTER / res; customWave.replace(mouseX * res * size, lfoSample); } |