mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Remove braindead Parameter inheritance abuse.
This commit is contained in:
parent
7eb4e5d22b
commit
0ffeaa6d6a
6 changed files with 14 additions and 75 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue