|
|
@ -140,7 +140,7 @@ namespace Heck::OSP { |
|
|
|
|
|
|
|
void midi_realtime_handler(const ld::MidiEvent& msg) |
|
|
|
{ |
|
|
|
if constexpr (Constants::Developer::LOG_MIDI_REALTIME) { |
|
|
|
if constexpr (Constants::Developer::LOG_MIDI_UART_REALTIME) { |
|
|
|
logger_midi.push(msg); |
|
|
|
} |
|
|
|
switch (msg.srt_type) { |
|
|
@ -233,7 +233,7 @@ namespace Heck::OSP { |
|
|
|
{ |
|
|
|
while (midi.HasEvents()) { |
|
|
|
ld::MidiEvent msg = midi.PopEvent(); |
|
|
|
if constexpr (Constants::Developer::LOG_MIDI_REALTIME) { |
|
|
|
if constexpr (Constants::Developer::LOG_MIDI_UART_POLLING) { |
|
|
|
logger_midi.push(msg); |
|
|
|
} |
|
|
|
midi_dispatch(msg, false); |
|
|
@ -349,12 +349,6 @@ namespace Heck::OSP { |
|
|
|
ld::DaisySeed::PrintLine("Entering MainLoop"); |
|
|
|
u32 uptime_ms{}; |
|
|
|
|
|
|
|
int clock_time_new{}; |
|
|
|
int clock_time_current{}; |
|
|
|
|
|
|
|
int clock_bar_new{}; |
|
|
|
int clock_bar_current{}; |
|
|
|
|
|
|
|
int clock_16n_new{}; |
|
|
|
int clock_16n_current{}; |
|
|
|
|
|
|
@ -364,19 +358,6 @@ namespace Heck::OSP { |
|
|
|
while (1) { |
|
|
|
uptime_ms = ld::System::GetNow(); |
|
|
|
|
|
|
|
clock_time_new = clock.tick_infinite(); |
|
|
|
if (clock_time_current != clock_time_new) { |
|
|
|
clock_time_current = clock_time_new; |
|
|
|
} |
|
|
|
|
|
|
|
clock_bar_new = clock.count_bar(); |
|
|
|
if (clock_bar_new != clock_bar_current) { |
|
|
|
clock_bar_current = clock_bar_new; |
|
|
|
if constexpr (Constants::Developer::LOG_CLOCK_BAR) { |
|
|
|
ld::DaisySeed::PrintLine("Bar: %i", clock_bar_current); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
clock_16n_new = clock.count_16n(); |
|
|
|
if (clock_16n_new != clock_16n_current) { |
|
|
|
clock_16n_current = clock_16n_new; |
|
|
|