projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Don't allow aux sends from MIDI tracks for the time
[ardour.git]
/
gtk2_ardour
/
shuttle_control.h
diff --git
a/gtk2_ardour/shuttle_control.h
b/gtk2_ardour/shuttle_control.h
index 427120a755b84f9dc64d4fd501b66dcd606fc0d3..ab58969743bbb5609dafeb9628b4cbb6c6134b2e 100644
(file)
--- a/
gtk2_ardour/shuttle_control.h
+++ b/
gtk2_ardour/shuttle_control.h
@@
-32,7
+32,7
@@
namespace Gtk {
#include "ardour/types.h"
#include "ardour/types.h"
-class ShuttleControl : public Gtk::DrawingArea, public ARDOUR::SessionHandlePtr
+class ShuttleControl : public Gtk::DrawingArea, public ARDOUR::SessionHandlePtr
{
public:
ShuttleControl ();
{
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;
ShuttleControllable (ShuttleControl&);
void set_value (double);
double get_value (void) const;
-
- void set_id (const std::string&);
-
+
ShuttleControl& sc;
};
ShuttleControl& sc;
};
@@
-60,7
+58,8
@@
class ShuttleControl : public Gtk::DrawingArea, public ARDOUR::SessionHandlePtr
float shuttle_max_speed;
float last_speed_displayed;
bool shuttle_grabbed;
float shuttle_max_speed;
float last_speed_displayed;
bool shuttle_grabbed;
- double shuttle_fract;
+ double shuttle_speed_on_grab;
+ float shuttle_fract;
boost::shared_ptr<ShuttleControllable> _controllable;
cairo_pattern_t* pattern;
ARDOUR::microseconds_t last_shuttle_request;
boost::shared_ptr<ShuttleControllable> _controllable;
cairo_pattern_t* pattern;
ARDOUR::microseconds_t last_shuttle_request;
@@
-90,6
+89,12
@@
class ShuttleControl : public Gtk::DrawingArea, public ARDOUR::SessionHandlePtr
void set_shuttle_units (ARDOUR::ShuttleUnits);
void set_shuttle_style (ARDOUR::ShuttleBehaviour);
void set_shuttle_units (ARDOUR::ShuttleUnits);
void set_shuttle_style (ARDOUR::ShuttleBehaviour);
+
+ 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__ */
};
#endif /* __gtk2_ardour_shuttle_control_h__ */