diff options
-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 |