summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-01-14 21:16:47 +0800
committerrekado <rekado@elephly.net>2013-01-14 21:16:47 +0800
commite8c0cd081ecd07ad0d30b66426d69a6c60d545b6 (patch)
tree9141a57f91694e4a92a1b64bb83ebfb2b4b94cd4
parentba836690649899df4c68cf5e642a62a24a03ccdd (diff)
add type and declaration of `on`
-rw-r--r--src/mdaPianoVoice.cpp2
-rw-r--r--src/mdaPianoVoice.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/mdaPianoVoice.cpp b/src/mdaPianoVoice.cpp
index 4c88e8f..f7824d7 100644
--- a/src/mdaPianoVoice.cpp
+++ b/src/mdaPianoVoice.cpp
@@ -42,7 +42,7 @@ float mdaPianoVoice::p_helper(unsigned short id, Param d) {
}
-mdaPianoVoice::on(unsigned char note, unsigned char velocity)
+void mdaPianoVoice::on(unsigned char note, unsigned char velocity)
{
// TODO: replace with this voice's local copy
float * param = programs[curProgram].param;
diff --git a/src/mdaPianoVoice.h b/src/mdaPianoVoice.h
index c7b2e43..441558f 100644
--- a/src/mdaPianoVoice.h
+++ b/src/mdaPianoVoice.h
@@ -47,6 +47,7 @@ class mdaPianoVoice : public LV2::Voice {
float p_helper(unsigned short, Param);
void update(Param); // recalculates internal variables
+ void on(unsigned char key, unsigned char velocity);
void reset(void);
};