Wouldn't it be nice if plugin presets had a description/comment?
[ardour.git] / libs / ardour / legatize.cc
index 0c118a6a48fcb136466bd14df1a2f4fd7fbd49eb..cd45d430f3cd255a2c1ef583b577e3baeb16ea1d 100644 (file)
@@ -31,10 +31,10 @@ Legatize::~Legatize ()
 
 Command*
 Legatize::operator()(boost::shared_ptr<ARDOUR::MidiModel> model,
-                     Evoral::Beats                        position,
+                     Temporal::Beats                      position,
                      std::vector<Legatize::Notes>&        seqs)
 {
-       MidiModel::NoteDiffCommand* cmd = new MidiModel::NoteDiffCommand(model, "legatize");
+       MidiModel::NoteDiffCommand* cmd = new MidiModel::NoteDiffCommand(model, name ());
 
        for (std::vector<Legatize::Notes>::iterator s = seqs.begin(); s != seqs.end(); ++s) {
                for (Legatize::Notes::iterator i = (*s).begin(); i != (*s).end();) {
@@ -43,10 +43,10 @@ Legatize::operator()(boost::shared_ptr<ARDOUR::MidiModel> model,
                                break;
                        }
 
-                       const Evoral::Beats new_end = (*next)->time() - Evoral::Beats::tick();
+                       const Temporal::Beats new_end = (*next)->time() - Temporal::Beats::tick();
                        if ((*i)->end_time() > new_end ||
                            (!_shrink_only && (*i)->end_time() < new_end)) {
-                               const Evoral::Beats new_length(new_end - (*i)->time());
+                               const Temporal::Beats new_length(new_end - (*i)->time());
                                cmd->change((*i), MidiModel::NoteDiffCommand::Length, new_length);
                        }