Smooth out multislider
Hi all,
I'm feeding a list with 512 points into the multislider, but would like to smooth them out before doing so. E.g. by returning the average of the previous and next number: [1, 1, 20, 20, 20, 20, 20] should turn into something like [1, 10.5, 15.25, 17.75, etc]. I guess what I'm trying to achieve is an equivalent of 'blurring'.
The list originally comes from a matrix. Initially I tried to reduce the contrast with jit.brcosa, but then the total line flattens out. I want to keep the general slope of the line, just smoother. I also tried using the jit.dimop, with the avg operator, but that turns it into blocks, not a smooth line.
I guess reducing the 512 points to a lower number, interpolating between them and then going back to the 512 points would also do the trick, but I have no idea how to achieve this.
Thanks a lot!!
wit vexpr ?
zzz
doesnt [slilde] takes lists now?
Vexpr made it flatter, like reducing the contrast in general.
But, [slide] did the trick! Thanks!
Regarding the question about how to interpolate (upsample) while in matrix form: