diff options
author | rekado <rekado@elephly.net> | 2013-01-18 22:15:01 +0800 |
---|---|---|
committer | rekado <rekado@elephly.net> | 2013-01-18 22:15:01 +0800 |
commit | 9392fa22607cea78a38ae4e912946ec71fa36c86 (patch) | |
tree | 4c08fadfb2cd0b437f2c5e03970a1d3166949041 | |
parent | 8fcd1c2972b72ee398571646e2884b76448dca16 (diff) |
is_sustained queries m_key, not note
-rw-r--r-- | src/mdaPianoVoice.h | 2 |
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 |