diff options
author | rekado <rekado@elephly.net> | 2013-01-25 18:26:51 +0800 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2013-01-25 18:26:51 +0800 |
commit | 153543e73129ca6cdfa9fc001105240d8a534f25 (patch) | |
tree | 303b6835871b170d8f9099ce83ffef0e0b2045b2 /src | |
parent | af651415a03e5ab5c3d8fd38bfa5b9a118a387b0 (diff) |
remove setParameter
Diffstat (limited to 'src')
-rw-r--r-- | src/mdaPiano.cpp | 12 | ||||
-rw-r--r-- | src/mdaPiano.h | 1 |
2 files changed, 0 insertions, 13 deletions
diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp index 4f9fa2c..8f2154b 100644 --- a/src/mdaPiano.cpp +++ b/src/mdaPiano.cpp @@ -89,18 +89,6 @@ void mdaPiano::setVolume(float value) } -void mdaPiano::setParameter(unsigned char id, float value) -{ - if(id>=NPARAMS) - return; - *p(id+PARAM_OFFSET) = value; - update(); -#ifdef DEBUG - printf("changed %i to %f\n", id, value); -#endif -} - - void mdaPiano::handle_midi(uint32_t size, unsigned char* data) { #ifdef DEBUG printf("%d\n", data[1]); diff --git a/src/mdaPiano.h b/src/mdaPiano.h index bda11cc..66518ac 100644 --- a/src/mdaPiano.h +++ b/src/mdaPiano.h @@ -25,7 +25,6 @@ public: unsigned find_free_voice(unsigned char, unsigned char); void handle_midi(uint32_t size, unsigned char* data); void setVolume(float); - void setParameter(unsigned char, float); private: |