summaryrefslogtreecommitdiff
path: root/src/mdaPianoVoice.h
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-01-14 22:17:21 +0800
committerrekado <rekado@elephly.net>2013-01-14 22:17:21 +0800
commit9b02feb9d5dc0ed830f437afa493631747b72ed7 (patch)
tree2ffee0eb80d379d1360f3cb2eed3f8e3066d9640 /src/mdaPianoVoice.h
parentfba9fc35f94198e8f2cf29d6fdc6937029f38e01 (diff)
implement key release handler
Diffstat (limited to 'src/mdaPianoVoice.h')
-rw-r--r--src/mdaPianoVoice.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mdaPianoVoice.h b/src/mdaPianoVoice.h
index 1cd393f..22f8218 100644
--- a/src/mdaPianoVoice.h
+++ b/src/mdaPianoVoice.h
@@ -56,6 +56,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 release(unsigned char velocity);
void reset(void);
bool is_sustained(void) { return (note == SUSTAIN); }
unsigned char get_key(void) const { return m_key; }