diff --git a/data/copy-zynaddsubfx b/data/copy-zynaddsubfx index 4bed08af0..4921c1cb3 100755 --- a/data/copy-zynaddsubfx +++ b/data/copy-zynaddsubfx @@ -2,8 +2,8 @@ set -e -ORIG_ZYN_DIR="/home/falktx/FOSS/GIT-mine/falkTX/zynaddsubfx" -CARLA_ZYN_DIR="/home/falktx/FOSS/GIT-mine/falkTX/Carla/source/native-plugins/zynaddsubfx" +ORIG_ZYN_DIR="/home/falktx/Projects/FOSS/GIT-mine/zynaddsubfx-code" +CARLA_ZYN_DIR="/home/falktx/Projects/FOSS/GIT-mine/Carla/source/native-plugins/zynaddsubfx" rm -f $CARLA_ZYN_DIR/*.cpp rm -f $CARLA_ZYN_DIR/*.h diff --git a/source/native-plugins/zynaddsubfx/Effects/EffectMgr.cpp b/source/native-plugins/zynaddsubfx/Effects/EffectMgr.cpp index 0ad8d259b..a30f4b126 100644 --- a/source/native-plugins/zynaddsubfx/Effects/EffectMgr.cpp +++ b/source/native-plugins/zynaddsubfx/Effects/EffectMgr.cpp @@ -241,6 +241,7 @@ int EffectMgr::geteffect(void) // Initialize An Effect in RT context void EffectMgr::init(void) { + kill(); changeeffectrt(nefx, true); changepresetrt(preset, true); for(int i=0; i<128; ++i) diff --git a/source/native-plugins/zynaddsubfx/Misc/MiddleWare.cpp b/source/native-plugins/zynaddsubfx/Misc/MiddleWare.cpp index 7dea7225b..df63a9061 100644 --- a/source/native-plugins/zynaddsubfx/Misc/MiddleWare.cpp +++ b/source/native-plugins/zynaddsubfx/Misc/MiddleWare.cpp @@ -1030,6 +1030,14 @@ static rtosc::Ports middwareSnoopPorts = { else midi.map(addr.c_str(), true); rEnd}, + {"unlearn:s", 0, 0, + rBegin; + string addr = rtosc_argument(msg, 0).s; + auto &midi = impl.midi_mapper; + auto map = midi.getMidiMappingStrings(); + midi.unMap(addr.c_str(), false); + midi.unMap(addr.c_str(), true); + rEnd}, //drop this message into the abyss {"ui/title:", 0, 0, [](const char *msg, RtData &d) {}} };