Putting a cap on the value of a MIDI-mapped parameter
I have a session where I'm using an expression pedal (cc11) to control a pitch shifting plugin. The pitch shifter can shift up or shift down, but I only want to shift down, so I mapped the pedal to the bottom half of the shifter's range, as you can see in this screenshot. So when I push the pedal heel all the way down, the shifter is shifting down a full octave, and when the toe is all the way down, the plugin goes up to zero, and doesn't apply any pitch shifting at all. This mostly seems to work fine, but the problem is that sometimes when I come up to zero too fast, it will momentarily shift up a half step.
So my question is -- is there a way to put a cap on the mapped parameter's value? I don't know if this is something that requires M4L to solve, but it certainly doesn't seem to be fixable within the MIDI Mappings panel. I can just change the max value to .49 because then it will usually not come all the way up to zero.
If anyone has any ideas, using M4L or just using Live's built-in tools, I'd be most grateful. Thanks!

you probably need to scale over the top and then
clip the range.
I don't think that is possible without max patch inserted.
scale 0 127 0.5 1.1 (or 1.05 ... enough to allways reach 1.)
clip 0.5 1.
This mostly seems to work fine, but the problem is that sometimes when I come up to zero too fast, it will momentarily shift up a half step.
Could it be a mechanical problem in the pedal itself that could be solved by changing the spring tension or adding some bits of cardboard or something?
Sweet, thanks, Source Audio! It worked perfectly. I'm still pretty new to M4L, and I think it is so freaking cool that you can do stuff like this. I really wish I'd discovered this a lot earlier!

Could it be a mechanical problem in the pedal itself that could be solved by changing the spring tension or adding some bits of cardboard or something?
That did occur to me, but I've had similar issues with a few different expression pedals, so I always assumed that this was just the nature of assigning a digital value to an expression pedal. I'm curious if others have had better luck trying to do this kind of stuff with expression pedals?
P.S. I think the issue may have actually been with the plugin, not the pedal, because I ended up having to change that "clip" part to this:
clip 0. 0.497
So it's always very slightly pitched down, but it's not enough to be noticeable. Hmm... now that I think about it, I guess that means maybe I could have just done it by changing the MIDI mapping settings after all... At any rate, it's still great to have the option. Thanks again!