From 153543e73129ca6cdfa9fc001105240d8a534f25 Mon Sep 17 00:00:00 2001 From: rekado Date: Fri, 25 Jan 2013 18:26:51 +0800 Subject: remove setParameter --- src/mdaPiano.cpp | 12 ------------ src/mdaPiano.h | 1 - 2 files changed, 13 deletions(-) (limited to 'src') 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: -- cgit v1.2.3