Is it me or the Macro script editor

I suddenly realised I didn’t need the variable and changed the code to this.

defineParameter ("pitchStep", Nil, 0, 0, 5, 1, function() pitchStepChange() end)

function pitchStepChange()
 this.program:setParameter(22, pitchStep)
end

When I put this script in the Lua module and connected the parameter to the knob element, all works fine. You get a 5 semitone transpose one the program layer.

However, if you put the same script on your macro page and connect the parameter in the knob value box, it doesn’t work and you get a script error. I know the script is connecting because the knob moves in a 5 step fashion and not gradual as usual.

I still don’t know if it’s something I’m doing wrong, but I have a feeling the macro editor has some issues. There have been other bugs creeping up with selection scope.