add type and declaration of `on`
authorrekado <rekado@elephly.net>
Mon, 14 Jan 2013 13:16:47 +0000 (21:16 +0800)
committerrekado <rekado@elephly.net>
Mon, 14 Jan 2013 13:16:47 +0000 (21:16 +0800)
src/mdaPianoVoice.cpp
src/mdaPianoVoice.h

index 4c88e8f..f7824d7 100644 (file)
@@ -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;
index c7b2e43..441558f 100644 (file)
@@ -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);
 };