diff options
author | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2015-03-19 20:14:06 +0000 |
---|---|---|
committer | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2015-03-27 13:22:38 +0000 |
commit | 3127587f9a9acb5bc19efea9a0aab8ad3214640b (patch) | |
tree | 33beb1a42ee02b430abff01bd4797683738aaa9c /gtk2_ardour/tempo_dialog.h | |
parent | ee959e73fd02c5eefc56a27d23e9ce847b0fab55 (diff) |
Go back to using g_get_monotonic_time() for tap tempo
Using ev->time doesn't work as well as I'd hoped, so revert to the previous
method with g_get_monotonic_time().
Diffstat (limited to 'gtk2_ardour/tempo_dialog.h')
-rw-r--r-- | gtk2_ardour/tempo_dialog.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/tempo_dialog.h b/gtk2_ardour/tempo_dialog.h index 97d89e2867..eda4e61f1a 100644 --- a/gtk2_ardour/tempo_dialog.h +++ b/gtk2_ardour/tempo_dialog.h @@ -60,8 +60,8 @@ private: NoteTypes note_types; bool tapped; // whether the tap-tempo button has been clicked - guint32 last_tap; // time of the last tap (in mS, from GdkEventButton::time). Only valid if tapped is true - double average_interval; // running average of tap tempo button press interval times + gint64 last_tap; + double average_interval; Gtk::ComboBoxText pulse_selector; Gtk::Adjustment bpm_adjustment; |