summaryrefslogtreecommitdiff
path: root/src/mdaPianoVoice.h
diff options
context:
space:
mode:
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 ab37dc5..1cd393f 100644
--- a/src/mdaPianoVoice.h
+++ b/src/mdaPianoVoice.h
@@ -57,6 +57,7 @@ class mdaPianoVoice : public LV2::Voice {
void update(Param); // recalculates internal variables
void on(unsigned char key, unsigned char velocity);
void reset(void);
+ bool is_sustained(void) { return (note == SUSTAIN); }
unsigned char get_key(void) const { return m_key; }
};