It seem that this request is not new, and we came to the same conclusion :
For the GPScript solution, if your CC buttons sends a CC 0 when released, there is nothing to change in the GPScript. But if it doesn’t, you need to uncomment the commented lines by removing the double slash.