diff options
author | David Robillard <d@drobilla.net> | 2009-02-19 04:12:54 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-02-19 04:12:54 +0000 |
commit | 0f71728a925eb8f16c14c74f0dae9fdd53406a20 (patch) | |
tree | 01e056fde9fdcbe90c9bccdc03dce57b4bc043f9 /gtk2_ardour/automation_region_view.cc | |
parent | 8f572c3d3f79a86e6b86ccb71f9bee772e6fe738 (diff) |
Interpret tempo time based on read position (not source timeline position which is more or less meaningless).
Move time conversion into the region view rather than the source.
Adapt MIDI (including controllers) regions to the destination tempo when moved (e.g. dragging a region to a location with half the tempo will make the notes twice as long).
git-svn-id: svn://localhost/ardour2/branches/3.0@4635 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/automation_region_view.cc')
-rw-r--r-- | gtk2_ardour/automation_region_view.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gtk2_ardour/automation_region_view.cc b/gtk2_ardour/automation_region_view.cc index 98d402e348..3ba0794b17 100644 --- a/gtk2_ardour/automation_region_view.cc +++ b/gtk2_ardour/automation_region_view.cc @@ -70,8 +70,7 @@ AutomationRegionView::create_line (boost::shared_ptr<ARDOUR::AutomationList> lis { _line = boost::shared_ptr<AutomationLine>(new AutomationLine( ARDOUR::EventTypeMap::instance().to_symbol(list->parameter()), - trackview, *get_canvas_group(), list, - &_region->source(0)->time_converter())); + trackview, *get_canvas_group(), list, &_time_converter)); _line->set_colors(); _line->set_interpolation(list->interpolation()); _line->show(); |