GxWah feature request: automatic fade in/out

Sorry for revamping this but I see this is a nice wah that almost suits my needs. It would only need two more conditions: turn it off when value is <= or >= of X (so I can choose to turn it off when pedal is either full down or full up) AND pedal has stopped moving by Y msecs. Would it be possible to add this feature?

The solution I found does work but it’s a bit laggy