Fix #3 for clock PPQN resolutions of 16, 32 and 96

pull/7/head
midilab 7 years ago
parent cca6dd87c5
commit a3dcc0b109
  1. 24
      src/uClock.cpp

@ -114,15 +114,18 @@ void uClockClass::start()
void uClockClass::stop()
{
state = PAUSED;
counter = 0;
last_clock = 0;
div96th_counter = 0;
div32th_counter = 0;
div16th_counter = 0;
mod6_counter = 0;
indiv96th_counter = 0;
inmod6_counter = 0;
pll_x = 220;
start_timer = 0;
if (mode == INTERNAL_CLOCK) {
state = PAUSED;
} else {
//if (mode == EXTERNAL_CLOCK) {
state = PAUSED;
}
if (onClockStopCallback) {
onClockStopCallback();
}
@ -221,13 +224,6 @@ void uClockClass::handleClock()
}
break;
/*
interval = (uint32_t)((uint32_t)156250 / tempo) - 16;
interval = x(156250 / tempo) - 16;
x(156250 / tempo) = -16
*/
}
}

Loading…
Cancel
Save