13
0

Exact beat for added regions.

This commit is contained in:
nick_m 2016-06-25 00:36:58 +10:00
parent 3b4a406ba1
commit 447f9ee062
2 changed files with 2 additions and 2 deletions

View File

@ -1528,7 +1528,7 @@ MidiTimeAxisView::add_region (framepos_t pos, framecnt_t length, bool commit, co
boost::shared_ptr<Region> region = (RegionFactory::create (src, plist));
/* sets beat position */
region->set_position (pos, sub_num);
playlist()->add_region (region, pos);
playlist()->add_region (region, pos, 1.0, false, sub_num);
_session->add_command (new StatefulDiffCommand (playlist()));
if (commit) {

View File

@ -692,7 +692,7 @@ Playlist::flush_notifications (bool from_undo)
*/
for (int i = 0; i < itimes; ++i) {
boost::shared_ptr<Region> copy = RegionFactory::create (region, true);
boost::shared_ptr<Region> copy = RegionFactory::create (region, true, sub_num);
add_region_internal (copy, pos, sub_num);
set_layer (copy, DBL_MAX);
pos += region->length();