diff options
author | David Robillard <d@drobilla.net> | 2014-11-30 23:14:03 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-11-30 23:56:20 -0500 |
commit | 0ffeaa6d6a28b2e676939eaabb6ee239482b8a5a (patch) | |
tree | 38d7943229cdfd1f25a3705e2d9f888109fd8817 /libs/evoral/test | |
parent | 7eb4e5d22bf43fa1e6bc44dfa33d8732f744c2dd (diff) |
Remove braindead Parameter inheritance abuse.
Diffstat (limited to 'libs/evoral/test')
-rw-r--r-- | libs/evoral/test/SequenceTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/evoral/test/SequenceTest.cpp b/libs/evoral/test/SequenceTest.cpp index d56235657b..b1d166f0b9 100644 --- a/libs/evoral/test/SequenceTest.cpp +++ b/libs/evoral/test/SequenceTest.cpp @@ -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); |