From 7db12f6b128eef0d63dd6a8eda3d04f4dab1fc79 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 24 Sep 2017 12:03:54 -0400 Subject: convert codebase to use Temporal for various time types --- libs/ardour/quantize.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libs/ardour/quantize.cc') diff --git a/libs/ardour/quantize.cc b/libs/ardour/quantize.cc index b60b63dcf4..27e40ae8f7 100644 --- a/libs/ardour/quantize.cc +++ b/libs/ardour/quantize.cc @@ -111,8 +111,8 @@ swing_position (double pos, double grid, double swing, double offset) Command* Quantize::operator () (boost::shared_ptr model, - Evoral::Beats position, - std::vector::Notes>& seqs) + Temporal::Beats position, + std::vector::Notes>& seqs) { /* TODO: Rewrite this to be precise with fixed point? */ @@ -125,7 +125,7 @@ Quantize::operator () (boost::shared_ptr model, MidiModel::NoteDiffCommand* cmd = new MidiModel::NoteDiffCommand (model, "quantize"); - for (std::vector::Notes>::iterator s = seqs.begin(); s != seqs.end(); ++s) { + for (std::vector::Notes>::iterator s = seqs.begin(); s != seqs.end(); ++s) { for (Evoral::Sequence::Notes::iterator i = (*s).begin(); i != (*s).end(); ++i) { @@ -167,10 +167,10 @@ Quantize::operator () (boost::shared_ptr model, delta = new_end - (*i)->end_time().to_double(); if (fabs (delta) >= _threshold) { - Evoral::Beats new_dur(new_end - new_start); + Temporal::Beats new_dur(new_end - new_start); if (!new_dur) { - new_dur = Evoral::Beats(_end_grid); + new_dur = Temporal::Beats(_end_grid); } cmd->change ((*i), MidiModel::NoteDiffCommand::Length, new_dur); -- cgit v1.2.3