summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-01-16 22:14:18 +0800
committerrekado <rekado@elephly.net>2013-01-16 22:14:21 +0800
commite4943532bf733d3af8e38532c2b9c08763aa8b52 (patch)
tree1228b7375acd961801c33db6b19f6d699a4ba9ee /src
parent995419d460d33660b8aa45fa40f0e9678b2e99ad (diff)
update parameters on note on
Since there is no program change event we could catch when the host loads a new preset, the internal values have to be re-computed on note on.
Diffstat (limited to 'src')
-rw-r--r--src/mdaPianoVoice.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mdaPianoVoice.cpp b/src/mdaPianoVoice.cpp
index 9f75839..7ccd9d5 100644
--- a/src/mdaPianoVoice.cpp
+++ b/src/mdaPianoVoice.cpp
@@ -49,6 +49,7 @@ void mdaPianoVoice::on(unsigned char note, unsigned char velocity)
{
// store key that turned this voice on (used in 'get_key')
m_key = note;
+ update(Current);
float l=99.0f;
uint32_t k, s;