What would be a way to implement something like that? I know I could trigger a linseg or something like that, but I would like for it to automatically detect ascending or descending values.
Can you just check the previous value with the current one to see if the envelop is moving upwards or downwards. Probably best to average a window of samples each time, it should give you smoother results.
I will mess around with that idea!