diff options
Diffstat (limited to 'src/mdaPiano.cpp')
-rw-r--r-- | src/mdaPiano.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp index 29b9404..1110c56 100644 --- a/src/mdaPiano.cpp +++ b/src/mdaPiano.cpp @@ -52,10 +52,15 @@ void mdaPiano::update() { } -void mdaPiano::setParameter(uint32_t index, float value) +void mdaPiano::setParameter(unsigned char id, float value) { - programs[curProgram].param[index] = value; + if(id>=NPARAMS) + return; + *p(id+PARAM_OFFSET) = value; update(); +#ifdef DEBUG + printf("changed %i to %f\n", id, value); +#endif } |