Remove braindead Parameter inheritance abuse.

This commit is contained in:
David Robillard 2014-11-30 23:14:03 -05:00
parent 7eb4e5d22b
commit 0ffeaa6d6a
6 changed files with 14 additions and 75 deletions

View file

@ -1,5 +1,4 @@
#include "SequenceTest.hpp"
#include "evoral/MIDIParameters.hpp"
#include <cassert>
CPPUNIT_TEST_SUITE_REGISTRATION(SequenceTest);
@ -103,11 +102,12 @@ SequenceTest::controlInterpolationTest ()
static const uint64_t delay = 1000;
static const uint32_t cc_type = 1;
boost::shared_ptr<Control> c = seq->control(MIDI::ContinuousController(cc_type, 1, 1), true);
boost::shared_ptr<Control> c = seq->control(Parameter(cc_type, 1, 1), true);
CPPUNIT_ASSERT(c);
double min, max, normal;
MIDI::controller_range(min, max, normal);
double min = 0.0;
double max = 127.0;
double normal = 0.0;
// Make a ramp like /\ from min to max and back to min
c->set_double(min, 0, true);