zynaddsubfx

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

commit d4935ed9a2449493f47a0240f5290e5f404e530b
parent ea70639eb0b7a91521bc4543ed5656374a1f2cbb
Author: fundamental <mark.d.mccurry@gmail.com>
Date:   Mon, 24 Jul 2017 19:17:08 -0400

Clear Notes When Part Is Disabled

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

diff --git a/src/Misc/Part.cpp b/src/Misc/Part.cpp @@ -49,9 +49,13 @@ static const Ports partPorts = { rRecur(ctl, "Controller"), rParamZyn(partno, rProp(internal), "How many parts are before this in the Master"), +#undef rChangeCb +#define rChangeCb if(obj->Penabled == false) obj->AllNotesOff(); rToggle(Penabled, rShort("enable"), rDefaultDepends(partno), rPresets(true), rDefault(false), "Part enable"), #undef rChangeCb +#define rChangeCb +#undef rChangeCb #define rChangeCb obj->setPvolume(obj->Pvolume); rParamZyn(Pvolume, rShort("Vol"), rDefault(96),"Part Volume"), #undef rChangeCb