Calculate average slider output value over time

MARTINUKAI 's icon

Hi there. I have a slider that outputs values from 0 to 1000. I want to be able to move the slider quickly up and down and then calculate the average value reached in between each up and down movement. Is this scenario possible in max?

The idea is that the slider will play a musical pitch in between the changing values whilst the quick back and forth movements will agitate the amplitude envelope. The amp envelope is taken care of. Just trying to get that middle value (pitch). Many thanks in advance for any tips!

Bill 2's icon

Is this what you mean (if you'll pardon the pun)?

Max Patch
Copy patch and select New From Clipboard in Max.

MARTINUKAI 's icon

That may well be exactly what I mean ;) Thanks for your help, Bill!