summaryrefslogtreecommitdiff
path: root/drumgizmo
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2016-04-03 15:22:50 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2016-04-03 15:22:50 +0200
commit02b769ac6b71f3e25a49ccb22cd382f02116bcca (patch)
tree010b0e412ee4a58a1f86efdc82b9bec62139b1c3 /drumgizmo
parente6c35b1b336fd4d48fb4a87f3ae39372bc906acc (diff)
Tested and finalized - branch ready to be merged into master.
Diffstat (limited to 'drumgizmo')
-rw-r--r--drumgizmo/input/test.cc10
-rw-r--r--drumgizmo/input/test.h2
2 files changed, 4 insertions, 8 deletions
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<event_t>& events)
{
-/*
if((float)rand() / (float)RAND_MAX > probability)
{
return;
@@ -111,7 +108,6 @@ void TestInputEngine::run(size_t pos, size_t len, std::vector<event_t>& 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();