diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mdaPiano.cpp | 2 | ||||
-rw-r--r-- | src/mdaPiano.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/mdaPiano.cpp b/src/mdaPiano.cpp index a81ed03..75df330 100644 --- a/src/mdaPiano.cpp +++ b/src/mdaPiano.cpp @@ -108,6 +108,7 @@ mdaPiano::mdaPiano(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, //initialise... for(int32_t v=0; v<NVOICES; v++) { + memset(&voice[v], 0, sizeof(voice[v])); voice[v].env = 0.0f; voice[v].dec = 0.99f; //all notes off } @@ -115,6 +116,7 @@ mdaPiano::mdaPiano(audioMasterCallback audioMaster) : AudioEffectX(audioMaster, muff = 160.0f; cpos = sustain = activevoices = 0; comb = new float[256]; + memset(comb, 0, sizeof(float) * 256); guiUpdate = 0; diff --git a/src/mdaPiano.h b/src/mdaPiano.h index 012fcee..d03d2a8 100644 --- a/src/mdaPiano.h +++ b/src/mdaPiano.h @@ -127,7 +127,7 @@ private: int32_t cmax; float *comb, cdep, width, trim; int32_t size, sustain; - float tune, fine, random, stretch; + float fine, random, stretch; float muff, muffvel, sizevel, velsens, volume; }; |