From a2d2f738cb63dbf0fb89e0a00c424ce883fb7888 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 22 Sep 2008 16:28:02 +0000 Subject: Move event specific ringbuffer stuff to evoral. Sane event type interface between evoral and libardour (no more shared magic numbers). Cleanup Evoral::Sequence iterator, fix bugs, probably introduce new ones. Move MIDI specific event functions to Evoral::MIDIEvent (is-a Evoral::Event). git-svn-id: svn://localhost/ardour2/branches/3.0@3785 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/quantize.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libs/ardour/quantize.cc') diff --git a/libs/ardour/quantize.cc b/libs/ardour/quantize.cc index ff8925edd9..3b5a264a7b 100644 --- a/libs/ardour/quantize.cc +++ b/libs/ardour/quantize.cc @@ -72,12 +72,12 @@ Quantize::run (boost::shared_ptr r) for (Evoral::Sequence::Notes::iterator i = model->notes().begin(); i != model->notes().end(); ++i) { const double new_time = lrint((*i)->time() / q_frames) * q_frames; - double new_dur = lrint((*i)->duration() / q_frames) * q_frames; + double new_dur = lrint((*i)->length() / q_frames) * q_frames; if (new_dur == 0.0) new_dur = q_frames; (*i)->set_time(new_time); - (*i)->set_duration(new_dur); + (*i)->set_length(new_dur); } model->set_edited(true); -- cgit v1.2.3