audioclock: use correct call for "right now" tempo display

This commit is contained in:
Paul Davis 2021-11-12 14:21:40 -07:00
parent 2735022357
commit dd4e495d90

View file

@ -1303,15 +1303,15 @@ AudioClock::set_bbt (timepos_t const & w, timecnt_t const & o, bool /*force*/)
#ifndef PLATFORM_WINDOWS #ifndef PLATFORM_WINDOWS
/* UTF8 1/4 note and 1/8 note ♩ (\u2669) and ♪ (\u266a) are n/a on Windows */ /* UTF8 1/4 note and 1/8 note ♩ (\u2669) and ♪ (\u266a) are n/a on Windows */
if (m.tempo().note_type() == 4) { if (m.tempo().note_type() == 4) {
snprintf (buf, sizeof(buf), "\u2669 = %.3f", m.tempo().note_types_per_minute()); snprintf (buf, sizeof(buf), "\u2669 = %.3f", m.tempo().note_types_per_minute_at_DOUBLE (pos));
_left_btn.set_text (string_compose ("%1", buf), false); _left_btn.set_text (string_compose ("%1", buf), false);
} else if (m.tempo().note_type() == 8) { } else if (m.tempo().note_type() == 8) {
snprintf (buf, sizeof(buf), "\u266a = %.3f", m.tempo().note_types_per_minute()); snprintf (buf, sizeof(buf), "\u266a = %.3f", m.tempo().note_types_per_minute_at_DOUBLE (pos));
_left_btn.set_text (string_compose ("%1", buf), false); _left_btn.set_text (string_compose ("%1", buf), false);
} else } else
#endif #endif
{ {
snprintf (buf, sizeof(buf), "1/%d = %.3f",m.tempo().note_type(), m.tempo().note_types_per_minute()); snprintf (buf, sizeof(buf), "1/%d = %.3f",m.tempo().note_type(), m.tempo().note_types_per_minute_at_DOUBLE (pos));
_left_btn.set_text (buf, false); _left_btn.set_text (buf, false);
} }