Exact beat for added regions.
This commit is contained in:
parent
3b4a406ba1
commit
447f9ee062
|
@ -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));
|
boost::shared_ptr<Region> region = (RegionFactory::create (src, plist));
|
||||||
/* sets beat position */
|
/* sets beat position */
|
||||||
region->set_position (pos, sub_num);
|
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()));
|
_session->add_command (new StatefulDiffCommand (playlist()));
|
||||||
|
|
||||||
if (commit) {
|
if (commit) {
|
||||||
|
|
|
@ -692,7 +692,7 @@ Playlist::flush_notifications (bool from_undo)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
for (int i = 0; i < itimes; ++i) {
|
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);
|
add_region_internal (copy, pos, sub_num);
|
||||||
set_layer (copy, DBL_MAX);
|
set_layer (copy, DBL_MAX);
|
||||||
pos += region->length();
|
pos += region->length();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user