diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 10:17:09 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-02-22 15:31:25 -0500 |
commit | e98553edfabaf05a7adb7e828b6c2e7a4b38c305 (patch) | |
tree | 20f3ac0b5fa62394f40489ed604628a58b12408a /gtk2_ardour/time_fx_dialog.h | |
parent | 031286f1a1c23ffb7dd8eca1708115a0367bd22d (diff) |
more work on time/pitch stretch/shifting
Clock and percent measure are now linked, not alternatives. Threading for GUI updates is now safe.
Diffstat (limited to 'gtk2_ardour/time_fx_dialog.h')
-rw-r--r-- | gtk2_ardour/time_fx_dialog.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/gtk2_ardour/time_fx_dialog.h b/gtk2_ardour/time_fx_dialog.h index c2616b6d2b..03e0ccfdcd 100644 --- a/gtk2_ardour/time_fx_dialog.h +++ b/gtk2_ardour/time_fx_dialog.h @@ -72,6 +72,8 @@ class TimeFXDialog : public ArdourDialog, public ProgressReporter float get_time_fraction () const; float get_pitch_fraction () const; + void start_updates (); + private: ARDOUR::framecnt_t original_length; Gtk::Adjustment pitch_octave_adjustment; @@ -80,12 +82,17 @@ class TimeFXDialog : public ArdourDialog, public ProgressReporter Gtk::SpinButton pitch_octave_spinner; Gtk::SpinButton pitch_semitone_spinner; Gtk::SpinButton pitch_cent_spinner; - Gtk::Adjustment percent_adjustment; + Gtk::Adjustment duration_adjustment; AudioClock* duration_clock; - Gtk::RadioButton duration_chosen; - Gtk::RadioButtonGroup choice_group; - Gtk::RadioButton percent_chosen; + bool ignore_adjustment_change; + bool ignore_clock_change; + sigc::connection update_connection; + float progress; + void update_progress_gui (float); + void duration_clock_changed (); + void duration_adjustment_changed (); + void timer_update (); }; #endif /* __ardour_time_fx_dialog_h__ */ |