projects
/
software
/
lv2-mdametapiano.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
995419d
)
update parameters on note on
author
rekado
<rekado@elephly.net>
Wed, 16 Jan 2013 14:14:18 +0000
(22:14 +0800)
committer
rekado
<rekado@elephly.net>
Wed, 16 Jan 2013 14:14:21 +0000
(22:14 +0800)
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.
src/mdaPianoVoice.cpp
patch
|
blob
|
history
diff --git
a/src/mdaPianoVoice.cpp
b/src/mdaPianoVoice.cpp
index 9f75839c1ff81c0c1dd6a800bd55942df1789850..7ccd9d5e4fab8bfc4a3ce8945df6b686862a6906 100644
(file)
--- 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;