| @@ -2,8 +2,8 @@ | |||||
| set -e | 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/*.cpp | ||||
| rm -f $CARLA_ZYN_DIR/*.h | rm -f $CARLA_ZYN_DIR/*.h | ||||
| @@ -241,6 +241,7 @@ int EffectMgr::geteffect(void) | |||||
| // Initialize An Effect in RT context | // Initialize An Effect in RT context | ||||
| void EffectMgr::init(void) | void EffectMgr::init(void) | ||||
| { | { | ||||
| kill(); | |||||
| changeeffectrt(nefx, true); | changeeffectrt(nefx, true); | ||||
| changepresetrt(preset, true); | changepresetrt(preset, true); | ||||
| for(int i=0; i<128; ++i) | for(int i=0; i<128; ++i) | ||||
| @@ -1030,6 +1030,14 @@ static rtosc::Ports middwareSnoopPorts = { | |||||
| else | else | ||||
| midi.map(addr.c_str(), true); | midi.map(addr.c_str(), true); | ||||
| rEnd}, | 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 | //drop this message into the abyss | ||||
| {"ui/title:", 0, 0, [](const char *msg, RtData &d) {}} | {"ui/title:", 0, 0, [](const char *msg, RtData &d) {}} | ||||
| }; | }; | ||||