X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fshuttle_control.h;h=ab58969743bbb5609dafeb9628b4cbb6c6134b2e;hb=a936e9669390c4f272db75fa94817d4ae1a133a2;hp=1306af292b7264a57c019fd5036b1b47b18a6fa6;hpb=509cd57c74ad386267f6df371acd04d17569336c;p=ardour.git diff --git a/gtk2_ardour/shuttle_control.h b/gtk2_ardour/shuttle_control.h index 1306af292b..ab58969743 100644 --- a/gtk2_ardour/shuttle_control.h +++ b/gtk2_ardour/shuttle_control.h @@ -32,7 +32,7 @@ namespace Gtk { #include "ardour/types.h" -class ShuttleControl : public Gtk::DrawingArea, public ARDOUR::SessionHandlePtr +class ShuttleControl : public Gtk::DrawingArea, public ARDOUR::SessionHandlePtr { public: ShuttleControl (); @@ -48,9 +48,7 @@ class ShuttleControl : public Gtk::DrawingArea, public ARDOUR::SessionHandlePtr ShuttleControllable (ShuttleControl&); void set_value (double); double get_value (void) const; - - void set_id (const std::string&); - + ShuttleControl& sc; }; @@ -60,6 +58,7 @@ class ShuttleControl : public Gtk::DrawingArea, public ARDOUR::SessionHandlePtr float shuttle_max_speed; float last_speed_displayed; bool shuttle_grabbed; + double shuttle_speed_on_grab; float shuttle_fract; boost::shared_ptr _controllable; cairo_pattern_t* pattern; @@ -91,10 +90,11 @@ class ShuttleControl : public Gtk::DrawingArea, public ARDOUR::SessionHandlePtr void set_shuttle_units (ARDOUR::ShuttleUnits); void set_shuttle_style (ARDOUR::ShuttleBehaviour); - int speed_as_semitones (float); - float semitones_as_speed (int); - float semitones_as_fract (int); - int fract_as_semitones (float); + int speed_as_semitones (float, bool&); + int fract_as_semitones (float, bool&); + + float semitones_as_speed (int, bool); + float semitones_as_fract (int, bool); }; #endif /* __gtk2_ardour_shuttle_control_h__ */