mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
audioclock: use correct call for "right now" tempo display
This commit is contained in:
parent
2735022357
commit
dd4e495d90
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue