Optimize automation-event process splitting
[ardour.git] / libs / ardour / midi_stretch.cc
index 7258f49a1ccdab471f65f15f1c7e79810fb7fa23..d7facbb0f185dd2becfff035ad41be304465ef47 100644 (file)
@@ -26,7 +26,7 @@
 #include "ardour/midi_stretch.h"
 #include "ardour/types.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace std;
 using namespace ARDOUR;
@@ -108,14 +108,14 @@ MidiStretch::run (boost::shared_ptr<Region> r, Progress*)
                new_model->append(ev, Evoral::next_event_id());
        }
 
-       new_model->end_write (Evoral::Sequence<Evoral::Beats>::DeleteStuckNotes);
+       new_model->end_write (Evoral::Sequence<Temporal::Beats>::DeleteStuckNotes);
        new_model->set_edited (true);
 
        new_src->copy_interpolation_from (src);
 
        const int ret = finish (region, nsrcs, new_name);
        /* non-musical */
-       results[0]->set_length((framecnt_t) floor (r->length() * _request.time_fraction), 0);
+       results[0]->set_length((samplecnt_t) floor (r->length() * _request.time_fraction), 0);
 
        return ret;
 }