diff options
author | nick_m <mainsbridge@gmail.com> | 2015-12-30 00:39:10 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-05-27 23:38:10 +1000 |
commit | 885f1fd684da31a730f90ebad23ad9ff39baedb0 (patch) | |
tree | c8d4564d40cd29948d802357b29595a5916b6689 /libs/ardour/session.cc | |
parent | 772683d2df7ba96d27943140fe59c8797fd7bed3 (diff) |
Tempo ramps - update midi regions and locations when dragging tempo.
- also make locations and regions use a double beat rather than bbt for musical position.
Diffstat (limited to 'libs/ardour/session.cc')
-rw-r--r-- | libs/ardour/session.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/ardour/session.cc b/libs/ardour/session.cc index 4097335f5b..e9bbaa5c4a 100644 --- a/libs/ardour/session.cc +++ b/libs/ardour/session.cc @@ -5438,6 +5438,16 @@ Session::tempo_map_changed (const PropertyChange&) } void +Session::gui_tempo_map_changed () +{ + //clear_clicks (); ? + + playlists->update_after_tempo_map_change (); + + _locations->apply (*this, &Session::update_locations_after_tempo_map_change); +} + +void Session::update_locations_after_tempo_map_change (const Locations::LocationList& loc) { for (Locations::LocationList::const_iterator i = loc.begin(); i != loc.end(); ++i) { |