From 02b769ac6b71f3e25a49ccb22cd382f02116bcca Mon Sep 17 00:00:00 2001 From: Jonas Suhr Christensen Date: Sun, 3 Apr 2016 15:22:50 +0200 Subject: Tested and finalized - branch ready to be merged into master. --- drumgizmo/input/test.cc | 10 +++------- drumgizmo/input/test.h | 2 +- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'drumgizmo') diff --git a/drumgizmo/input/test.cc b/drumgizmo/input/test.cc index 1315c46..4789119 100644 --- a/drumgizmo/input/test.cc +++ b/drumgizmo/input/test.cc @@ -49,20 +49,18 @@ bool TestInputEngine::init(const Instruments& instruments) void TestInputEngine::setParm(const std::string& parm, const std::string& value) { -/* - if(parm == "probability") + if(parm == "p") { probability = atof(value.c_str()); } - if(parm == "instrument") + if(parm == "instr") { instrument = atoi(value.c_str()); } - if(parm == "length") + if(parm == "len") { length = atoi(value.c_str()); } -*/ } bool TestInputEngine::start() @@ -80,7 +78,6 @@ void TestInputEngine::pre() void TestInputEngine::run(size_t pos, size_t len, std::vector& events) { -/* if((float)rand() / (float)RAND_MAX > probability) { return; @@ -111,7 +108,6 @@ void TestInputEngine::run(size_t pos, size_t len, std::vector& events) event.velocity = (float)rand()/(float)RAND_MAX; event.offset = len; -*/ } void TestInputEngine::post() diff --git a/drumgizmo/input/test.h b/drumgizmo/input/test.h index 7e88cb5..1edf386 100644 --- a/drumgizmo/input/test.h +++ b/drumgizmo/input/test.h @@ -31,7 +31,7 @@ #include "audioinputengine.h" class TestInputEngine - : AudioInputEngine + : public AudioInputEngine { public: TestInputEngine(); -- cgit v1.2.3