summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mdaPianoVoice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mdaPianoVoice.cpp b/src/mdaPianoVoice.cpp
index b229062..abb6a95 100644
--- a/src/mdaPianoVoice.cpp
+++ b/src/mdaPianoVoice.cpp
@@ -48,7 +48,7 @@ float mdaPianoVoice::p_helper(unsigned short id, Param d) {
void mdaPianoVoice::on(unsigned char note, unsigned char velocity)
{
// store key that turned this voice on (used in 'get_key')
- m_key = key;
+ m_key = note;
// TODO: replace with this voice's local copy
float * param = programs[curProgram].param;