The bug was that parameter gets modulation when right-dragging it even if users remove modulation link by double right-clicking it.
In RemoveModulationIfDoubleRClick function, FX[FxGUID][Fx_P].ModAMT[Mc] = 0, but 0 is not nil so FX[FxGUID][Fx_P].ModAMT[Mc] is true in the code below.
if FP.ModAMT[M] then
Trk.Prm.Assign = FP.WhichCC
AssigningMacro = M
r.gmem_write(5, AssigningMacro) --tells jsfx which macro is user tweaking
r.gmem_write(6, FP.WhichCC)
end
Also did a bit of clean-up in General Functions because it's a bit chaotic. Removed duplicated and un-used functions, and reordered them, but not modified them so the change should not affect you. Moved GUI-related functions to the new GUI function.
EDIT:
I forgot to mention it, but I changed automation mode buttons to one popup button. Color changes depending on the current mode.
The bug was that parameter gets modulation when right-dragging it even if users remove modulation link by double right-clicking it.
In RemoveModulationIfDoubleRClick function, FX[FxGUID][Fx_P].ModAMT[Mc] = 0, but 0 is not nil so FX[FxGUID][Fx_P].ModAMT[Mc] is true in the code below.
Also did a bit of clean-up in General Functions because it's a bit chaotic. Removed duplicated and un-used functions, and reordered them, but not modified them so the change should not affect you. Moved GUI-related functions to the new GUI function.
EDIT: I forgot to mention it, but I changed automation mode buttons to one popup button. Color changes depending on the current mode.