summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2013-01-25 18:30:36 +0800
committerrekado <rekado@elephly.net>2013-01-25 18:30:36 +0800
commit0d06eabed00f6085bf110080ce16f7ace765fb4b (patch)
treee6cc847297e1a1c33949f3b397a87f5c18e9318e
parent4e3fd1f417861282121ee4f29091373dd672a51a (diff)
update internal state on render
-rw-r--r--src/mdaPianoVoice.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mdaPianoVoice.cpp b/src/mdaPianoVoice.cpp
index 6d8256e..10574f0 100644
--- a/src/mdaPianoVoice.cpp
+++ b/src/mdaPianoVoice.cpp
@@ -126,6 +126,7 @@ void mdaPianoVoice::render(uint32_t from, uint32_t to) {
float x, l, r;
uint32_t i;
+ update(Current);
for (uint32_t frame = from; frame < to; ++frame) {
// initialize left and right output
l = r = 0.0f;