rename callback PPQNCallback fo OutputPPQNCAllback to follow method prefix

develop
midilab 5 days ago
parent 0d5ab3733c
commit 35906e2ab1
  1. 6
      src/uClock.cpp
  2. 4
      src/uClock.h

@ -125,7 +125,7 @@ uClockClass::uClockClass()
clock_mode = INTERNAL_CLOCK; clock_mode = INTERNAL_CLOCK;
resetCounters(); resetCounters();
onPPQNCallback = nullptr; onOutputPPQNCallback = nullptr;
onSync1Callback = nullptr; onSync1Callback = nullptr;
onSync2Callback = nullptr; onSync2Callback = nullptr;
onSync4Callback = nullptr; onSync4Callback = nullptr;
@ -572,8 +572,8 @@ void uClockClass::handleTimerInt()
} }
// main PPQNCallback // main PPQNCallback
if (onPPQNCallback) { if (onOutputPPQNCallback) {
onPPQNCallback(tick); onOutputPPQNCallback(tick);
++tick; ++tick;
} }

@ -94,7 +94,7 @@ class uClockClass {
uClockClass(); uClockClass();
void setOnOutputPPQN(void (*callback)(uint32_t tick)) { void setOnOutputPPQN(void (*callback)(uint32_t tick)) {
onPPQNCallback = callback; onOutputPPQNCallback = callback;
} }
void setOnStep(void (*callback)(uint32_t step)) { void setOnStep(void (*callback)(uint32_t step)) {
@ -190,7 +190,7 @@ class uClockClass {
// shuffle // shuffle
bool inline processShuffle(); bool inline processShuffle();
void (*onPPQNCallback)(uint32_t tick); void (*onOutputPPQNCallback)(uint32_t tick);
void (*onStepCallback)(uint32_t step); void (*onStepCallback)(uint32_t step);
void (*onSync1Callback)(uint32_t tick); void (*onSync1Callback)(uint32_t tick);
void (*onSync2Callback)(uint32_t tick); void (*onSync2Callback)(uint32_t tick);

Loading…
Cancel
Save