portamento/glide

You mean that you can enable and disable the option?
There is someone who did it with DSP effects (which you can turn on/off with commands):