X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fmidi_time_axis.cc;h=ac39c557aecf9567462c1fe49976e7d3fb9b1728;hb=540827880248eb8ae7fb39f466dbd94e4ce72cc8;hp=fcb073aed983271122bacd68543bb34fed7c3993;hpb=93c24e4433d69fe1de28d4d2ed2045aa7cb3596b;p=ardour.git diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index fcb073aed9..ac39c557ae 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -1508,7 +1508,7 @@ MidiTimeAxisView::automation_child_menu_item (Evoral::Parameter param) } boost::shared_ptr -MidiTimeAxisView::add_region (framepos_t pos, framecnt_t length, bool commit, const int32_t& sub_num) +MidiTimeAxisView::add_region (framepos_t pos, framecnt_t length, bool commit, const int32_t sub_num) { Editor* real_editor = dynamic_cast (&_editor); if (commit) { @@ -1528,7 +1528,7 @@ MidiTimeAxisView::add_region (framepos_t pos, framecnt_t length, bool commit, co boost::shared_ptr 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) { @@ -1635,7 +1635,7 @@ MidiTimeAxisView::capture_channel_mode_changed () } bool -MidiTimeAxisView::paste (framepos_t pos, const Selection& selection, PasteContext& ctx, const int32_t& sub_num) +MidiTimeAxisView::paste (framepos_t pos, const Selection& selection, PasteContext& ctx, const int32_t sub_num) { if (!_editor.internal_editing()) { // Non-internal paste, paste regions like any other route