summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-01-16 07:45:41 +0800
committerrekado <rekado@elephly.net>2013-01-16 07:45:41 +0800
commit9e2d18d07bc7c88a5fb6fee99f960d559205806e (patch)
tree58f6d400f25f3a34383ed611c9eccb08d8f763e2
parentd4c8d0754ae1dc7bdbd8ae9da6df10394333bf84 (diff)
fix: key -> note
-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;