summaryrefslogtreecommitdiff
path: root/gtk2_ardour/tempo_dialog.h
diff options
context:
space:
mode:
authorColin Fletcher <colin.m.fletcher@googlemail.com>2014-02-12 21:49:00 +0000
committerColin Fletcher <colin.m.fletcher@googlemail.com>2014-07-05 21:47:49 +0100
commit61d413ada423f456ad7687b2ae2d39047c7f53a6 (patch)
treedc1f5f34779ee958e7113e6da40171064af05084 /gtk2_ardour/tempo_dialog.h
parente0eaea6471e25f4c3797450a96f35fcdbb1c6992 (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.h1
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;