From 9392fa22607cea78a38ae4e912946ec71fa36c86 Mon Sep 17 00:00:00 2001 From: rekado Date: Fri, 18 Jan 2013 22:15:01 +0800 Subject: is_sustained queries m_key, not note --- src/mdaPianoVoice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3