diff options
author | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2014-02-12 21:49:00 +0000 |
---|---|---|
committer | Colin Fletcher <colin.m.fletcher@googlemail.com> | 2014-07-05 21:47:49 +0100 |
commit | 61d413ada423f456ad7687b2ae2d39047c7f53a6 (patch) | |
tree | dc1f5f34779ee958e7113e6da40171064af05084 /gtk2_ardour/tempo_dialog.h | |
parent | e0eaea6471e25f4c3797450a96f35fcdbb1c6992 (diff) |
Make 'Tap tempo' set the bpm to a running average
Keep a running average of the interval between clicks on the 'Tap tempo'
button, and use that average to set the bpm value.
Diffstat (limited to 'gtk2_ardour/tempo_dialog.h')
-rw-r--r-- | gtk2_ardour/tempo_dialog.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk2_ardour/tempo_dialog.h b/gtk2_ardour/tempo_dialog.h index 848b55cb59..9e97afa98d 100644 --- a/gtk2_ardour/tempo_dialog.h +++ b/gtk2_ardour/tempo_dialog.h @@ -58,6 +58,7 @@ private: NoteTypes note_types; struct timeval last_tap; + double average_interval; Gtk::ComboBoxText pulse_selector; Gtk::Adjustment bpm_adjustment; |