summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-01-18 22:15:01 +0800
committerrekado <rekado@elephly.net>2013-01-18 22:15:01 +0800
commit9392fa22607cea78a38ae4e912946ec71fa36c86 (patch)
tree4c08fadfb2cd0b437f2c5e03970a1d3166949041 /src
parent8fcd1c2972b72ee398571646e2884b76448dca16 (diff)
is_sustained queries m_key, not note
Diffstat (limited to 'src')
-rw-r--r--src/mdaPianoVoice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mdaPianoVoice.h b/src/mdaPianoVoice.h
index 7df0076..3276d74 100644
--- a/src/mdaPianoVoice.h
+++ b/src/mdaPianoVoice.h
@@ -60,7 +60,7 @@ class mdaPianoVoice : public LV2::Voice {
void on(unsigned char key, unsigned char velocity);
void release(unsigned char velocity);
void reset(void);
- bool is_sustained(void) { return (note == SUSTAIN); }
+ bool is_sustained(void) { return (m_key == SUSTAIN); }
unsigned char get_key(void) const { return m_key; }
// generates the sound for this voice