Fix quantization and other time-related ops.
[ardour.git] / gtk2_ardour / tempo_dialog.h
index cfb09b047626cf42f66d98c9f6064ebe35b16f82..616be2433e3cf4c0d4cf49dc6ae19c02d6bf0c69 100644 (file)
@@ -52,10 +52,14 @@ private:
        bool bpm_button_release (GdkEventButton* );
        bool entry_key_release (GdkEventKey* );
        void pulse_change ();
+       void tap_tempo ();
 
        typedef std::map<std::string,float> NoteTypes;
        NoteTypes note_types;
 
+       gint64 last_tap;
+       double average_interval;
+
        Gtk::ComboBoxText pulse_selector;
        Gtk::Adjustment   bpm_adjustment;
        Gtk::SpinButton   bpm_spinner;
@@ -64,6 +68,7 @@ private:
        Gtk::Label   when_bar_label;
        Gtk::Label   when_beat_label;
        Gtk::Label   pulse_selector_label;
+       Gtk::Button  tap_tempo_button;
 };
 
 class MeterDialog : public ArdourDialog
@@ -81,10 +86,13 @@ private:
        void init (const Timecode::BBT_Time&, double, double, bool);
        bool entry_key_press (GdkEventKey* );
        bool entry_key_release (GdkEventKey* );
-       void note_types_change ();
+       void note_type_change ();
+
+       typedef std::map<std::string,float> NoteTypes;
+       NoteTypes note_types;
 
        Gtk::Entry   bpb_entry;
-       Gtk::ComboBoxText note_types;
+       Gtk::ComboBoxText note_type;
        std::vector<std::string> strings;
        Gtk::Button  ok_button;
        Gtk::Button  cancel_button;