zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit dae91e826e9692a5320296154e399a53a2fb7069
parent cbe12eed840c8cbd07c59196a41c41e85ac47f2f
Author: fundamental <mark.d.mccurry@gmail.com>
Date:   Sun, 24 Jul 2016 12:31:20 -0400

Clear Active Notes On Panic

Diffstat:
Msrc/Misc/Master.cpp | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/Misc/Master.cpp b/src/Misc/Master.cpp @@ -998,6 +998,8 @@ void Master::ShutUp() insefx[nefx]->cleanup(); for(int nefx = 0; nefx < NUM_SYS_EFX; ++nefx) sysefx[nefx]->cleanup(); + for(int i = 0; i < sizeof(activeNotes)/sizeof(activeNotes[0]); ++i) + activeNotes[i] = 0; vuresetpeaks(); shutup = 0; }