summaryrefslogtreecommitdiff
path: root/gtk2_ardour/route_time_axis.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2017-04-17 11:12:49 +0100
committerPaul Davis <paul@linuxaudiosystems.com>2017-09-18 11:40:53 -0400
commitf9e7ffc601fdec2470f106a963da80d60e6290e6 (patch)
treea57afa2198bd70502da7b9ba978271d2a27b465a /gtk2_ardour/route_time_axis.cc
parent2a1dccabc9e66a1c3a6268f40f5bac345a1f89d1 (diff)
no more per-track varispeed
Diffstat (limited to 'gtk2_ardour/route_time_axis.cc')
-rw-r--r--gtk2_ardour/route_time_axis.cc46
1 files changed, 8 insertions, 38 deletions
diff --git a/gtk2_ardour/route_time_axis.cc b/gtk2_ardour/route_time_axis.cc
index 47f74489e1..a0208da184 100644
--- a/gtk2_ardour/route_time_axis.cc
+++ b/gtk2_ardour/route_time_axis.cc
@@ -1022,17 +1022,11 @@ RouteTimeAxisView::route_color_changed ()
void
RouteTimeAxisView::set_samples_per_pixel (double fpp)
{
- double speed = 1.0;
-
- if (track()) {
- speed = track()->speed();
- }
-
if (_view) {
- _view->set_samples_per_pixel (fpp * speed);
+ _view->set_samples_per_pixel (fpp);
}
- StripableTimeAxisView::set_samples_per_pixel (fpp * speed);
+ StripableTimeAxisView::set_samples_per_pixel (fpp);
}
void
@@ -1300,21 +1294,16 @@ RouteTimeAxisView::set_selected_regionviews (RegionSelection& regions)
void
RouteTimeAxisView::get_selectables (framepos_t start, framepos_t end, double top, double bot, list<Selectable*>& results, bool within)
{
- double speed = 1.0;
-
- if (track() != 0) {
- speed = track()->speed();
- }
-
- framepos_t const start_adjusted = session_frame_to_track_frame(start, speed);
- framepos_t const end_adjusted = session_frame_to_track_frame(end, speed);
-
if ((_view && ((top < 0.0 && bot < 0.0))) || touched (top, bot)) {
- _view->get_selectables (start_adjusted, end_adjusted, top, bot, results, within);
+ _view->get_selectables (start, end, top, bot, results, within);
}
/* pick up visible automation tracks */
- StripableTimeAxisView::get_selectables (start_adjusted, end_adjusted, top, bot, results, within);
+ for (Children::iterator i = children.begin(); i != children.end(); ++i) {
+ if (!(*i)->hidden()) {
+ (*i)->get_selectables (start, end, top, bot, results, within);
+ }
+ }
}
void
@@ -1409,13 +1398,6 @@ RouteTimeAxisView::fade_range (TimeSelection& selection)
playlist = tr->playlist();
TimeSelection time (selection);
- float const speed = tr->speed();
- if (speed != 1.0f) {
- for (TimeSelection::iterator i = time.begin(); i != time.end(); ++i) {
- (*i).start = session_frame_to_track_frame((*i).start, speed);
- (*i).end = session_frame_to_track_frame((*i).end, speed);
- }
- }
playlist->clear_changes ();
playlist->clear_owned_changes ();
@@ -1444,13 +1426,6 @@ RouteTimeAxisView::cut_copy_clear (Selection& selection, CutCopyOp op)
playlist = tr->playlist();
TimeSelection time (selection.time);
- float const speed = tr->speed();
- if (speed != 1.0f) {
- for (TimeSelection::iterator i = time.begin(); i != time.end(); ++i) {
- (*i).start = session_frame_to_track_frame((*i).start, speed);
- (*i).end = session_frame_to_track_frame((*i).end, speed);
- }
- }
playlist->clear_changes ();
playlist->clear_owned_changes ();
@@ -1527,11 +1502,6 @@ RouteTimeAxisView::paste (framepos_t pos, const Selection& selection, PasteConte
DEBUG_TRACE (DEBUG::CutNPaste, string_compose ("paste to %1\n", pos));
- if (track()->speed() != 1.0f) {
- pos = session_frame_to_track_frame (pos, track()->speed());
- DEBUG_TRACE (DEBUG::CutNPaste, string_compose ("modified paste to %1\n", pos));
- }
-
/* add multi-paste offset if applicable */
std::pair<framepos_t, framepos_t> extent = (*p)->get_extent();
const framecnt_t duration = extent.second - extent.first;