diff options
author | nick_m <mainsbridge@gmail.com> | 2016-06-17 03:20:37 +1000 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-07-10 02:18:36 +1000 |
commit | 93c24e4433d69fe1de28d4d2ed2045aa7cb3596b (patch) | |
tree | 9cf3017f3075d57a1b7a3c5d9388b6554cbb0c7b /libs/ardour/ardour | |
parent | 94e0a15325278ec26dbeba4990a0e883db859338 (diff) |
Paste uses exact beats. rework _start_beats calculation in copy-with-offset ctor.
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/playlist.h | 6 | ||||
-rw-r--r-- | libs/ardour/ardour/region.h | 4 |
2 files changed, 6 insertions, 4 deletions
diff --git a/libs/ardour/ardour/playlist.h b/libs/ardour/ardour/playlist.h index 0a5f5e4ddc..09c31360ec 100644 --- a/libs/ardour/ardour/playlist.h +++ b/libs/ardour/ardour/playlist.h @@ -128,7 +128,7 @@ public: /* Editing operations */ - void add_region (boost::shared_ptr<Region>, framepos_t position, float times = 1, bool auto_partition = false); + void add_region (boost::shared_ptr<Region>, framepos_t position, float times = 1, bool auto_partition = false, const int32_t& sub_num = 0); void remove_region (boost::shared_ptr<Region>); void get_equivalent_regions (boost::shared_ptr<Region>, std::vector<boost::shared_ptr<Region> >&); void get_region_list_equivalent_regions (boost::shared_ptr<Region>, std::vector<boost::shared_ptr<Region> >&); @@ -161,7 +161,7 @@ public: boost::shared_ptr<Playlist> cut (std::list<AudioRange>&, bool result_is_hidden = true); boost::shared_ptr<Playlist> copy (std::list<AudioRange>&, bool result_is_hidden = true); - int paste (boost::shared_ptr<Playlist>, framepos_t position, float times); + int paste (boost::shared_ptr<Playlist>, framepos_t position, float times, const int32_t& sub_num); const RegionListProperty& region_list_property () const { return regions; } boost::shared_ptr<RegionList> region_list(); @@ -362,7 +362,7 @@ public: virtual XMLNode& state (bool); - bool add_region_internal (boost::shared_ptr<Region>, framepos_t position); + bool add_region_internal (boost::shared_ptr<Region>, framepos_t position, const int32_t& sub_num = 0); int remove_region_internal (boost::shared_ptr<Region>); void copy_regions (RegionList&) const; diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h index ec4f559a87..7f41cb6e5a 100644 --- a/libs/ardour/ardour/region.h +++ b/libs/ardour/ardour/region.h @@ -171,10 +171,12 @@ class LIBARDOUR_API Region Trimmable::CanTrim can_trim () const; PositionLockStyle position_lock_style () const { return _position_lock_style; } - double beat () const { return _beat; } void set_position_lock_style (PositionLockStyle ps); void recompute_position_from_lock_style (const int32_t& sub_num); + double beat () const { return _beat; } + void set_beat (double beat) { _beat = beat; } + void suspend_property_changes (); bool covers (framepos_t frame) const { |