Do not show MIDI tempo. Serial MIDI is too unstable. CV ext seems pretty stable when given a steady clock, but I need to try unstable sources / polyrhythms.
This commit is contained in:
1
clock.h
1
clock.h
@ -46,7 +46,6 @@ class Clock {
|
|||||||
pinMode(PULSE_OUT_PIN, OUTPUT);
|
pinMode(PULSE_OUT_PIN, OUTPUT);
|
||||||
|
|
||||||
// Initialize the clock library
|
// Initialize the clock library
|
||||||
uClock.setExtIntervalBuffer(32);
|
|
||||||
uClock.init();
|
uClock.init();
|
||||||
uClock.setClockMode(uClock.INTERNAL_CLOCK);
|
uClock.setClockMode(uClock.INTERNAL_CLOCK);
|
||||||
uClock.setOutputPPQN(uClock.PPQN_96);
|
uClock.setOutputPPQN(uClock.PPQN_96);
|
||||||
|
|||||||
@ -293,7 +293,12 @@ void DisplayMainPage() {
|
|||||||
if (app.selected_param == 0) {
|
if (app.selected_param == 0) {
|
||||||
gravity.display.setFont(LARGE_FONT);
|
gravity.display.setFont(LARGE_FONT);
|
||||||
char num_str[3];
|
char num_str[3];
|
||||||
|
// Serial MIID is too unstable to display bpm in real time.
|
||||||
|
if (app.selected_source == SOURCE_EXTERNAL_MIDI) {
|
||||||
|
sprintf(num_str, "%s", "EXT");
|
||||||
|
} else {
|
||||||
sprintf(num_str, "%d", gravity.clock.Tempo());
|
sprintf(num_str, "%d", gravity.clock.Tempo());
|
||||||
|
}
|
||||||
textWidth = gravity.display.getUTF8Width(num_str);
|
textWidth = gravity.display.getUTF8Width(num_str);
|
||||||
gravity.display.drawStr(32 - (textWidth / 2), textY, num_str);
|
gravity.display.drawStr(32 - (textWidth / 2), textY, num_str);
|
||||||
gravity.display.setFont(TEXT_FONT);
|
gravity.display.setFont(TEXT_FONT);
|
||||||
|
|||||||
Reference in New Issue
Block a user